Make include_shebang_line clearer (#1418)

This commit is contained in:
Casey Rodarmor 2022-11-19 12:56:26 -08:00 committed by GitHub
parent e27e12ab1a
commit 6ff18af48f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ impl<'line> Shebang<'line> {
}
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"))
}
}