Skip to content

Commit

Permalink
remove changes made by error
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed May 17, 2022
1 parent 4c87e9d commit d7f5f88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nf_core/modules/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,12 @@ class DiffEnum(enum.Enum):
if not dry_run:
self.update_modules_json(modules_json, modules_repo.name, module, version)

# Don't save to a file, just iteratively update the variable
else:
modules_json = self.update_modules_json(
modules_json, modules_repo.name, module, version, write_file=False
)

if self.save_diff_fn:
# Compare the new modules.json and build a diff
modules_json_diff = difflib.unified_diff(
Expand Down

0 comments on commit d7f5f88

Please sign in to comment.