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 <morten.brekkevold@sikt.no>
  • Loading branch information
hmpf and lunkwill42 authored Nov 23, 2023
1 parent 28b1ee6 commit 3d7be1b
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 3d7be1b

Please sign in to comment.