Skip to content

Commit

Permalink
Simplify converter expression
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic committed Feb 7, 2025
1 parent 2dfc817 commit 2322b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/persistence/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ class PathConstructor:
"""The name of the benchmark for which the path should be constructed."""

branch: str = field(
converter=lambda x: x or "-branchless-",
validator=instance_of(str),
converter=lambda x: "-branchless-" if x is None else x,
)
"""The branch checked out at benchmark execution time.
In case of detached head state the branch is set to 'branchless'."""
In case of detached head state the branch is set to '-branchless-'."""

latest_baybe_tag: str = field(validator=instance_of(str))
"""The latest BayBE version tag existing at benchmark execution time."""
Expand Down

0 comments on commit 2322b2a

Please sign in to comment.