Make include_shebang_line clearer (#1418)
This commit is contained in:
parent
e27e12ab1a
commit
6ff18af48f
@ -47,7 +47,7 @@ impl<'line> Shebang<'line> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn include_shebang_line(&self) -> bool {
|
pub(crate) fn include_shebang_line(&self) -> bool {
|
||||||
!cfg!(windows) && !matches!(self.interpreter_filename(), "cmd" | "cmd.exe")
|
!(cfg!(windows) || matches!(self.interpreter_filename(), "cmd" | "cmd.exe"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user