Skip to content

Commit f544da1

Browse files
committed
Shorthand return-expression
1 parent 55d3fa8 commit f544da1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/helpers/ptrack_helpers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ def is_nls_enabled():
109109
stdout=subprocess.PIPE,
110110
stderr=subprocess.PIPE
111111
)
112-
if b'enable-nls' in p.communicate()[0]:
113-
return True
114-
else:
115-
return False
112+
return b'enable-nls' in p.communicate()[0]
116113

117114

118115
class ProbackupException(Exception):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy