Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
maddenp-noaa committed Nov 27, 2024
1 parent 804e82b commit 15a5905
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/uwtools/config/jinja2.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,7 @@ def dereference(
if isinstance(v, UWYAMLRemove):
_deref_debug("Removing value at", ".".join([*keys, k]))
else:
kd, vd = [
dereference(
val=x,
context=context,
local={**val, **rendered},
keys=[*keys, k],
)
for x in (k, v)
]
kd, vd = [dereference(x, context, val, [*keys, k]) for x in (k, v)]
rendered[kd] = vd
elif isinstance(val, list):
rendered = [dereference(v, context) for v in val]
Expand Down

0 comments on commit 15a5905

Please sign in to comment.