We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 208e6e3 commit dae0cbdCopy full SHA for dae0cbd
pre_commit_hooks/check_executables_have_shebangs.py
@@ -34,8 +34,7 @@ def _check_git_filemode(paths: Sequence[str]) -> int:
34
tagmode = metadata.split(' ', 1)[0]
35
36
is_executable = any(b in EXECUTABLE_VALUES for b in tagmode[-3:])
37
- has_shebang = _check_has_shebang(path)
38
- if is_executable and not has_shebang:
+ if is_executable and not _check_has_shebang(path):
39
_message(path)
40
seen.add(path)
41
0 commit comments