There was an error while loading. Please reload this page.
1 parent a18c5af commit ace459bCopy full SHA for ace459b
1 file changed
pre_commit_hooks/detect_aws_credentials.py
@@ -84,7 +84,7 @@ def check_file_for_aws_keys(
84
for key in keys:
85
# naively match the entire file, low chance of incorrect
86
# collision
87
- if key in text_body:
+ if key and key in text_body:
88
bad_files.append(BadFile(filename, key[:4].ljust(28, '*')))
89
return bad_files
90
0 commit comments