Skip to content

Commit

Permalink
Addresses ruff comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rgcouto committed Aug 8, 2023
1 parent 4ff700e commit ff25eea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/linter/src/validator/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def load_appsettings(self, appsettings_file):
with open(appsettings_file, "r") as base:
try:
settings = json.load(base)
except Exception as e:
except Exception:
self.validator_report.add_failure(
appsettings_file,
"Invalid JSON",
Expand Down Expand Up @@ -122,7 +122,7 @@ def validate_base_appsettings_placeholders(self):
"""

# If the appsettings file couldn't be loaded, just return w/out doing nothing
if self.appsettings_data == None:
if self.appsettings_data is None:
return

clean_appsettings_data = copy.deepcopy(self.appsettings_data)
Expand Down Expand Up @@ -177,7 +177,7 @@ def validate_environment_appsettings_placeholders(self):
"""

# If the appsettings file couldn't be loaded, just return w/out doing nothing
if self.appsettings_data == None:
if self.appsettings_data is None:
return

clean_appsettings_data = copy.deepcopy(self.appsettings_data)
Expand Down Expand Up @@ -213,7 +213,7 @@ def validate_vault_object(self):
"""

# If the appsettings file couldn't be loaded, just return w/out doing nothing
if self.appsettings_data == None:
if self.appsettings_data is None:
return

if "Vault" not in self.appsettings_data:
Expand Down

0 comments on commit ff25eea

Please sign in to comment.