fix: Fixed new pylint warnings (#28724)

This commit is contained in:
Usama Sadiq
2021-09-23 17:54:04 +05:00
committed by GitHub
parent 32748788bf
commit 484cd536e2
21 changed files with 26 additions and 26 deletions

View File

@@ -331,7 +331,7 @@ class Env:
"at '{path}'".format(path=env_path),
file=sys.stderr,
)
return dict()
return {}
# Otherwise, load the file as JSON and return the resulting dict
try:
@@ -351,7 +351,7 @@ class Env:
"""
Return a dictionary of feature flags configured by the environment.
"""
return self.env_tokens.get('FEATURES', dict())
return self.env_tokens.get('FEATURES', {})
@classmethod
def rsync_dirs(cls):