Skip to content

Commit

Permalink
turn into single-liner
Browse files Browse the repository at this point in the history
Co-authored-by: Lauren Capelluto <[email protected]>
  • Loading branch information
jcjaskula-aws and laurencap authored Jun 12, 2024
1 parent 58dadab commit cd088a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/autoqasm/reserved_keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,4 @@ def sanitize_parameter_name(name: str) -> str:
str: Returns a modified 'name' that has an underscore ('_') appended to it;
otherwise, it returns the original 'name' unchanged
"""
is_keyword = name in reserved_keywords
return f"{name}_" if is_keyword else name
return f"{name}_" if name in reserved_keywords else name

0 comments on commit cd088a6

Please sign in to comment.