We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1308cb5 commit 29b4abdCopy full SHA for 29b4abd
src/tmuxp/util.py
@@ -53,16 +53,10 @@ def run_before_script(
53
return_code = proc.poll()
54
55
# Read one line from stdout, if available
56
- if proc.stdout:
57
- line_out = proc.stdout.readline()
58
- else:
59
- line_out = ""
+ line_out = proc.stdout.readline() if proc.stdout else ""
60
61
# Read one line from stderr, if available
62
- if proc.stderr:
63
- line_err = proc.stderr.readline()
64
65
- line_err = ""
+ line_err = proc.stderr.readline() if proc.stderr else ""
66
67
if line_out:
68
out_buffer.append(line_out)
0 commit comments