From ae3a97e2c70e31fc5820b4ea810a6cfa6d21d720 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 4 Nov 2020 20:05:12 +0000 Subject: [PATCH] Core: Fix errors found by LGTM --- volatility/cli/volshell/generic.py | 2 +- volatility/framework/interfaces/layers.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/volatility/cli/volshell/generic.py b/volatility/cli/volshell/generic.py index 5ec80a61c..4dd30dc2a 100644 --- a/volatility/cli/volshell/generic.py +++ b/volatility/cli/volshell/generic.py @@ -279,7 +279,7 @@ class Volshell(interfaces.plugins.PluginInterface): self.config[path_join(plugin_config_suffix, plugin.__name__, name)] = value try: - constructed = plugins.construct_plugin(self.context, [], plugin, plugin_path, None, NullFileHandler()) + constructed = plugins.construct_plugin(self.context, [], plugin, plugin_path, None, NullFileHandler) return constructed.run() except exceptions.UnsatisfiedException as excp: print("Unable to validate the plugin requirements: {}\n".format([x for x in excp.unsatisfied])) diff --git a/volatility/framework/interfaces/layers.py b/volatility/framework/interfaces/layers.py index f5670bb8a..7ef23e533 100644 --- a/volatility/framework/interfaces/layers.py +++ b/volatility/framework/interfaces/layers.py @@ -231,7 +231,6 @@ class DataLayerInterface(interfaces.configuration.ConfigurableInterface, metacla if progress_callback is not None and not callable(progress_callback): raise TypeError("Progress_callback is not callable") - scanner = scanner scanner.context = context scanner.layer_name = self.name