Skip to content

Commit

Permalink
Merge pull request #975 from mulkieran/simplify_from_str
Browse files Browse the repository at this point in the history
Simplify an expression
  • Loading branch information
mulkieran authored Mar 30, 2023
2 parents 7739638 + 8ec67b5 commit 7b7fecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stratis_cli/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ def from_str(code_str):
:rtype: YesOrNo
:raises: StopIteration
"""
return next(item for item in list(YesOrNo) if code_str == str(item))
return next(item for item in YesOrNo if code_str == str(item))

0 comments on commit 7b7fecf

Please sign in to comment.