Skip to content

Commit d589dea

Browse files
SteveL-MSFTCopilot
andauthored
Update dsc/src/util.rs
Co-authored-by: Copilot <[email protected]>
1 parent 2170b20 commit d589dea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsc/src/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ pub fn write_object(json: &str, format: Option<&OutputFormat>, include_separator
293293
}
294294
}
295295
else {
296-
let mut lock = stdout().lock();
297-
if writeln!(lock, "{output}").is_err() {
296+
let mut stdout_lock = stdout().lock();
297+
if writeln!(stdout_lock, "{output}").is_err() {
298298
// likely caused by a broken pipe (e.g. 'head' command closed early)
299299
exit(EXIT_SUCCESS);
300300
}

0 commit comments

Comments
 (0)