Skip to content

Commit

Permalink
Remove debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
guyer committed Jul 7, 2023
1 parent db1a18f commit 80c938a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ntd2d_action/variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ def sanitize(refs):
In a PR, refs can be, e.g., `12/merge`,
which causes downstream grief.
"""
sanitized = [ref.name.replace("/", "_") for ref in refs]
for name in sanitized:
gha_utils.warning(name)
return sanitized
return [ref.name.replace("/", "_") for ref in refs]

gha_utils.start_group("VariantCollection._calc_branches_and_versions")

Expand Down Expand Up @@ -138,13 +135,13 @@ def sanitize(refs):
and variant.name not in sanitize(self.repo.origin.refs)):
# This variant has been removed from the repository,
# so remove the corresponding docs
gha_utils.warning(f"Deleting {variant.name}")
gha_utils.debug(f"Deleting {variant.name}")
variant.rmdir()
elif isinstance(variant, Version):
gha_utils.debug(f"Appending version")
gha_utils.debug(f"Appending version {variant.name}")
self._versions.append(variant)
else:
gha_utils.debug(f"Appending branch")
gha_utils.debug(f"Appending branch {variant.name}")
self._branches.append(variant)
gha_utils.end_group()
self._branches.sort()
Expand Down

0 comments on commit 80c938a

Please sign in to comment.