Skip to content

Commit

Permalink
Merge pull request #66 from drewkerrigan/array-bug
Browse files Browse the repository at this point in the history
Fix conditional check on empty data.
  • Loading branch information
martialblog authored Sep 14, 2020
2 parents 831bfdf + 1f440e0 commit 2821a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_http_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def get(self, key, temp_data=''):
(Element.Key.NestedKey). Returns (None, 'not_found') if not found
"""

if temp_data:
if temp_data != '':
data = temp_data
else:
data = self.data
Expand Down

0 comments on commit 2821a1a

Please sign in to comment.