From c88f41c94221cdf1fefacaab3f592fb2719f2206 Mon Sep 17 00:00:00 2001 From: yhaliaw <43424755+yhaliaw@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:08:04 +0800 Subject: [PATCH] Refactor None check Co-authored-by: Yanks Yoon <37652070+yanksyoon@users.noreply.github.com> --- src/charm.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/charm.py b/src/charm.py index 171918438..09a8ec0ea 100755 --- a/src/charm.py +++ b/src/charm.py @@ -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,