Skip to content

Commit

Permalink
Merge branch 'bee-san:main' into PemPrivateKeyRegex
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredtso authored Oct 8, 2021
2 parents b8420f2 + b83558a commit c51f38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywhat/identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def identify(

for key_, value in identify_obj.items():
# if there are zero regex or file signature matches, set it to None
if len(identify_obj[key_]) == 0:
if not value:
identify_obj[key_] = None

if key != Keys.NONE:
Expand Down

0 comments on commit c51f38f

Please sign in to comment.