Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiusens committed Apr 10, 2020
1 parent 8cf2e94 commit 8fa938a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions snapcraft/cli/_channel_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class _HINTS:
PROGRESSING_TO: Final[str] = "→"


def _get_channel_hint(*, channel_map, fallback: Optional[str], architecture: str) -> str:
def _get_channel_hint(
*, channel_map, fallback: Optional[str], architecture: str
) -> str:
tick = _HINTS.CLOSED
for c in channel_map:
if c.channel == fallback and c.architecture == architecture:
Expand Down Expand Up @@ -151,10 +153,7 @@ def _get_channel_lines_for_channel(
percentage = progressive_mapped_channel.progressive.percentage
# Setup progress for the actually released revision, this needs to be
# calculated. But only show it if the channel is open.
progress_string = "{} {:.0f}%".format(
_HINTS.PROGRESSING_TO,
100 - percentage,
)
progress_string = "{} {:.0f}%".format(_HINTS.PROGRESSING_TO, 100 - percentage)
else:
progress_string = _HINTS.NO_PROGRESS

Expand Down

0 comments on commit 8fa938a

Please sign in to comment.