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 1, 2024
1 parent c9763b9 commit 83ba07f
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 83ba07f

Please sign in to comment.