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 Mar 7, 2024
1 parent 67ada1f commit 822ccb7
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 @@ -549,6 +549,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 822ccb7

Please sign in to comment.