8000 Shorthand return-expression · postgrespro/pg_probackup@f544da1 · GitHub
[go: up one dir, main page]

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)
0