Skip to content

Commit 822ccb7

Browse files
hmpflunkwill42
andcommitted
Change if-statement to boolean expression
Co-authored-by: Morten Brekkevold <[email protected]>
1 parent 67ada1f commit 822ccb7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/nav/util.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,4 @@ def check_log_level(logger, loglevel):
549549
logger.info("%s", expensive_function())
550550
"""
551551
level = logger.getEffectiveLevel()
552-
if level <= loglevel:
553-
return True
554-
return False
552+
return level <= loglevel

0 commit comments

Comments
 (0)