Skip to content

Commit

Permalink
Iterate directly on dictionary instead of calling .keys(). (sscpac#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdenewiler authored Dec 9, 2021
1 parent 8eb833c commit e5be4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statick_tool/statick.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def run(
if not reporting_plugins:
reporting_plugins = self.reporting_plugins.keys() # type: ignore
for plugin_name in reporting_plugins:
if plugin_name not in self.reporting_plugins.keys():
if plugin_name not in self.reporting_plugins:
logging.error("Can't find specified reporting plugin %s!", plugin_name)
return None, False

Expand Down

0 comments on commit e5be4c0

Please sign in to comment.