Skip to content

Commit

Permalink
Change if-statement to boolean expression
Browse files Browse the repository at this point in the history
Co-authored-by: Morten Brekkevold <[email protected]>
  • Loading branch information
hmpf and lunkwill42 committed Feb 22, 2024
1 parent 18c9b3f commit 66ba162
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/nav/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,4 @@ def check_log_level(logger, loglevel):
logger.info("%s", expensive_function())
"""
level = logger.getEffectiveLevel()
if level <= loglevel:
return True
return False
return level <= loglevel

0 comments on commit 66ba162

Please sign in to comment.