Use the function rather than variable

pull/1358/head
Nikhil Parasaram 5 years ago
parent 040e462d6c
commit f94b71e681
  1. 4
      mythril/plugin/discovery.py

@ -49,10 +49,10 @@ class PluginDiscovery(object, metaclass=Singleton):
:return: List of plugin names :return: List of plugin names
""" """
if default_enabled is None: if default_enabled is None:
return list(self._installed_plugins.keys()) return list(self.installed_plugins.keys())
return [ return [
plugin_name plugin_name
for plugin_name, plugin_class in self._installed_plugins.items() for plugin_name, plugin_class in self.installed_plugins.items()
if plugin_class.plugin_default_enabled == default_enabled if plugin_class.plugin_default_enabled == default_enabled
] ]

Loading…
Cancel
Save