Skip to content

Commit

Permalink
Refactor None check
Browse files Browse the repository at this point in the history
Co-authored-by: Yanks Yoon <[email protected]>
  • Loading branch information
yhaliaw and yanksyoon authored Oct 31, 2023
1 parent 7f7c120 commit c88f41c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,7 @@ def _get_runner_manager(
else:
path = GitHubOrg(org=path, group=self.config["group"])

dockerhub_mirror = (
self.config["dockerhub-mirror"] if self.config["dockerhub-mirror"] else None
)

dockerhub_mirror = self.config["dockerhub-mirror"] or None
app_name, unit = self.unit.name.rsplit("/", 1)
return RunnerManager(
app_name,
Expand Down

0 comments on commit c88f41c

Please sign in to comment.