Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
maddenp-noaa committed Jan 5, 2025
1 parent f3e2983 commit e5b5f60
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/uwtools/config/jinja2.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,9 @@ def deref_debug(action: str, val: Optional[_ConfigVal] = None) -> None:
:param action: The dereferencing activity being performed.
:param val: The value being dereferenced.
"""
prefix = "[dereference]"
if val:
log.debug("%s %s: %s", prefix, action, val)
else:
log.debug("%s %s", prefix, action)
tag = "[dereference]"
args = ("%s %s", tag, action) if val is None else ("%s %s: %s", tag, action, val)
log.debug(*args)


def render(
Expand Down

0 comments on commit e5b5f60

Please sign in to comment.