mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Remove a redundant if statement.
This commit is contained in:
parent
2a9e2b556a
commit
b53e60f4c6
@ -113,8 +113,7 @@ cmd_refresh_client_exec(struct cmd *self, struct cmdq_item *item)
|
||||
server_client_set_flags(tc, args_get(args, 'f'));
|
||||
|
||||
if (args_has(args, 'C')) {
|
||||
if (args_has(args, 'C')) {
|
||||
if (!(tc->flags & CLIENT_CONTROL)) {
|
||||
if (~tc->flags & CLIENT_CONTROL) {
|
||||
cmdq_error(item, "not a control client");
|
||||
return (CMD_RETURN_ERROR);
|
||||
}
|
||||
@ -132,7 +131,6 @@ cmd_refresh_client_exec(struct cmd *self, struct cmdq_item *item)
|
||||
tty_set_size(&tc->tty, x, y, 0, 0);
|
||||
tc->flags |= CLIENT_SIZECHANGED;
|
||||
recalculate_sizes();
|
||||
}
|
||||
return (CMD_RETURN_NORMAL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user