Skip to content

Commit

Permalink
Simplify the fix using or.
Browse files Browse the repository at this point in the history
Signed-off-by: Natanael Arndt <arndtn@gmail.com>
  • Loading branch information
white-gecko committed Jul 26, 2023
1 parent 853a30b commit a59fe73
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -1375,11 +1375,7 @@ def resolve_extends(services, service_names, environ):
content = content["services"]
subdirectory = os.path.dirname(filename)
content = rec_subs(content, environ)
from_service = (
{}
if content.get(from_service_name, {}) is None
else content.get(from_service_name, {})
)
from_service = content.get(from_service_name, {}) or {}
normalize_service(from_service, subdirectory)
else:
from_service = services.get(from_service_name, {}).copy()
Expand Down

0 comments on commit a59fe73

Please sign in to comment.