Skip to content

Commit

Permalink
Simplify has_param method
Browse files Browse the repository at this point in the history
  • Loading branch information
copalco committed Aug 24, 2024
1 parent 7101e13 commit 1bd1dec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions falcon/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -1860,10 +1860,7 @@ def has_param(self, name):
"""

if name in self._params:
return True
else:
return False
return name in self._params

def log_error(self, message):
"""Write an error message to the server's log.
Expand Down

0 comments on commit 1bd1dec

Please sign in to comment.