Skip to content

Commit

Permalink
Eliminate a variable that didn't make things clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
EliahKagan committed Nov 29, 2024
1 parent e57167f commit 5a803b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/it/src/commands/check_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ pub(super) mod function {
// TODO: Maybe check status? On Unix, it should be 0 or SIGPIPE. Not sure about Windows.
_ = child.wait().context("Failure running `git` subprocess to read blob")?;

let possible_shebang = &buf[..count];
Ok(possible_shebang == b"#!")
Ok(&buf[..count] == b"#!")
}
}

0 comments on commit 5a803b3

Please sign in to comment.