Skip to content

Commit fe32f47

Browse files
committed
cmd-diff: fix superfluous .stdout call
The .stdout at the end of this line is unnecessary and has no effect. When stdout is redirected to a file object, the stdout attribute of the returned CompletedProcess object is None. Assisted-By <gemini-code-assist> #4253 (comment)
1 parent b8ea014 commit fe32f47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd-diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def diff_cmd_outputs(cmd, path_from, path_to, strategy: DiffCmdOutputStrategy =
449449
c[idx] = path
450450
elif strategy == DiffCmdOutputStrategy.CD:
451451
workingdir = path
452-
subprocess.run(c, cwd=workingdir, check=True, stdout=output).stdout
452+
subprocess.run(c, cwd=workingdir, check=True, stdout=output)
453453
git_diff(from_output.name, to_output.name)
454454

455455

0 commit comments

Comments
 (0)