Skip to content

Commit

Permalink
SSH2: rm if condition that can't ever be true in 3.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Sep 24, 2022
1 parent f0a146e commit 4f53331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpseclib/Net/SSH2.php
Original file line number Diff line number Diff line change
Expand Up @@ -2782,7 +2782,7 @@ public function exec($command, callable $callback = null)

$this->channel_status[self::CHANNEL_EXEC] = NET_SSH2_MSG_CHANNEL_DATA;

if ($callback === false || $this->in_request_pty_exec) {
if ($this->in_request_pty_exec) {
return true;
}

Expand Down

1 comment on commit 4f53331

@terrafrost
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1843

Please sign in to comment.