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 Jan 3, 2024
1 parent 0bf55bb commit b39ffab
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 b39ffab

Please sign in to comment.