Skip to content

Commit 66ba162

Browse files
hmpflunkwill42
andcommitted
Change if-statement to boolean expression
Co-authored-by: Morten Brekkevold <[email protected]>
1 parent 18c9b3f commit 66ba162

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
@@ -523,6 +523,4 @@ def check_log_level(logger, loglevel):
523523
logger.info("%s", expensive_function())
524524
"""
525525
level = logger.getEffectiveLevel()
526-
if level <= loglevel:
527-
return True
528-
return False
526+
return level <= loglevel

0 commit comments

Comments
 (0)