Skip to content

Commit

Permalink
#4050 zero is a valid value we want to record, None is not
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 11, 2024
1 parent 9bad14d commit 7302312
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/bin/add_build_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ def get_linker_version():
return get_first_line_output(ld_version)


def set_prop(props, key, value) -> None:
if not value:
def set_prop(props, key: str, value) -> None:
if value is None:
return
if value != "unknown" or props.get(key) is None:
if value not in ("unknown", "") or props.get(key) is None:
props[key] = value


Expand Down

0 comments on commit 7302312

Please sign in to comment.