Island: Simplify a loop in get_config_exploits()

This commit is contained in:
Mike Salvatore 2022-07-14 07:12:08 -04:00
parent 57b97d09f4
commit d7a2a35c46
1 changed files with 2 additions and 5 deletions

View File

@ -420,11 +420,8 @@ class ReportService:
agent_configuration = cls._agent_configuration_repository.get_configuration()
exploitation_configuration = agent_configuration.propagation.exploitation
enabled_exploiters = (
exploiter
for exploiter in chain(
exploitation_configuration.brute_force, exploitation_configuration.vulnerability
)
enabled_exploiters = chain(
exploitation_configuration.brute_force, exploitation_configuration.vulnerability
)
return [