Skip to content

Commit 5a803b3

Browse files
committed
Eliminate a variable that didn't make things clearer
1 parent e57167f commit 5a803b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/it/src/commands/check_mode.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ pub(super) mod function {
114114
// TODO: Maybe check status? On Unix, it should be 0 or SIGPIPE. Not sure about Windows.
115115
_ = child.wait().context("Failure running `git` subprocess to read blob")?;
116116

117-
let possible_shebang = &buf[..count];
118-
Ok(possible_shebang == b"#!")
117+
Ok(&buf[..count] == b"#!")
119118
}
120119
}

0 commit comments

Comments
 (0)