Skip to content

Commit

Permalink
Simplify the keyword plugin
Browse files Browse the repository at this point in the history
`.lower()` is now done in `secret_generator`
so there is no need to do it twice.
  • Loading branch information
Jerzy Kozera committed Oct 8, 2018
1 parent e3a1667 commit a5d75e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect_secrets/plugins/keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def analyze_string(self, string, line_num, filename):
if WHITELIST_REGEX.search(string):
return output

for identifier in self.secret_generator(string.lower()):
for identifier in self.secret_generator(string):
secret = PotentialSecret(
self.secret_type,
filename,
Expand Down

0 comments on commit a5d75e3

Please sign in to comment.