Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
JSCU-CNI committed Sep 10, 2024
1 parent 6faacb7 commit 9f0e7fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dissect/update/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,13 @@ def actual_main():
current_modules = environment_modules(args.verbose)
if initial_modules and current_modules:
for module in current_modules:
previous_module = next(
filter(lambda prev_module: prev_module["name"] == module["name"], initial_modules)
)
previous_module = next(filter(lambda prev_module: prev_module["name"] == module["name"], initial_modules))
module_name = module.get("name")
previous_version = previous_module.get("version")
current_version = module.get("version")

if previous_version != current_version:
print(f'{module_name} \x1b[31m{previous_version}\x1b[0m -> \x1b[32m\x1b[1m{current_version}\x1b[0m')
print(f"{module_name} \x1b[31m{previous_version}\x1b[0m -> \x1b[32m\x1b[1m{current_version}\x1b[0m")

if args.verbose:
log.info("Currently installed dependencies listed below:")
Expand Down

0 comments on commit 9f0e7fc

Please sign in to comment.