mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
Remove redundant part of if statement
Also reorder imports.
This commit is contained in:
@@ -554,12 +554,8 @@ class Volshell(interfaces.plugins.PluginInterface):
|
||||
del kwargs[argname]
|
||||
|
||||
for keyword, val in kwargs.items():
|
||||
if not isinstance(
|
||||
val, (interfaces.configuration.BasicTypes, list)
|
||||
):
|
||||
if all(
|
||||
isinstance(x, interfaces.configuration.BasicTypes) for x in val
|
||||
):
|
||||
if not isinstance(val, (interfaces.configuration.BasicTypes, list)):
|
||||
if all(isinstance(x, interfaces.configuration.BasicTypes) for x in val):
|
||||
raise TypeError(
|
||||
"Configurable values must be simple types (int, bool, str, bytes)"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user