mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
Shorthand return-expression
This commit is contained in:
@@ -109,10 +109,7 @@ def is_nls_enabled():
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE
|
||||
)
|
||||
if b'enable-nls' in p.communicate()[0]:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
return b'enable-nls' in p.communicate()[0]
|
||||
|
||||
|
||||
class ProbackupException(Exception):
|
||||
|
||||
Reference in New Issue
Block a user