Skip to content

Commit

Permalink
feat(lint): is warning solve (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandrewcito authored Mar 6, 2021
1 parent aa137af commit b30782d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
],
"python.testing.pytestEnabled": false,
"python.testing.nosetestsEnabled": false,
"python.testing.unittestEnabled": true
"python.testing.unittestEnabled": true,
"python.linting.flake8Enabled": true,
"python.linting.enabled": true
}
4 changes: 2 additions & 2 deletions json_repository/context/json_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ def single( self, query_function):
"""
values = self.find(query_function=query_function)

if len(values) is 0:
if len(values) == 0:
raise EntityNotFound()

if len(values) is not 1:
if len(values) != 1:
raise MoreThanOneResult()

return values[0]
Expand Down

0 comments on commit b30782d

Please sign in to comment.