Skip to content

Commit e77f82e

Browse files
committed
direct return of boolean result
1 parent 44394e3 commit e77f82e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/mxdev/config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
def to_bool(value):
1414
if not isinstance(value, str):
1515
return bool(value)
16-
if value.lower() in ("true", "on", "yes", "1"):
17-
return True
18-
return False
16+
return value.lower() in ("true", "on", "yes", "1")
1917

2018

2119
class Configuration:

0 commit comments

Comments
 (0)