Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Style fixes from PR

Co-authored-by: Ben Hoyt <[email protected]>
  • Loading branch information
addyess and benhoyt authored May 24, 2024
1 parent 045266a commit 05e1339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/charms/operator_libs_linux/v2/snap.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,15 +585,15 @@ def ensure(
)
self._install(channel, cohort, revision)
logger.info("The snap installation completed successfully")
elif (revision is None) or (revision != self._revision):
elif revision is None or revision != self._revision:
# The snap is installed, but we are changing it (e.g., switching channels).
logger.info(
"Refreshing snap %s, revision %s, tracking %s", self._name, revision, channel
)
self._refresh(channel=channel, cohort=cohort, revision=revision, devmode=devmode)
logger.info("The snap refresh completed successfully")
else:
logger.info("Snap refresh was unnecessary %s", self._name)
logger.info("Refresh of snap %s was unnecessary", self._name)

self._update_snap_apps()
self._state = state
Expand Down

0 comments on commit 05e1339

Please sign in to comment.