Skip to content

Commit 2cf447f

Browse files
committed
neo(refactor[fetch_objs]): Remove redundant None guard on non-optional server param
why: server parameter is typed as Server (non-optional), so the `server is not None` guard is dead code that obscures intent. what: - Simplify tmux_bin assignment to direct attribute access
1 parent 0e0b8bb commit 2cf447f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libtmux/neo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def fetch_objs(
321321

322322
proc = tmux_cmd(
323323
*tmux_cmds,
324-
tmux_bin=server.tmux_bin if server is not None else None,
324+
tmux_bin=server.tmux_bin,
325325
)
326326

327327
if proc.stderr:

0 commit comments

Comments
 (0)