From cd088a6ee21e1d0fbb967e807e4f74b12ba9586c Mon Sep 17 00:00:00 2001 From: Jean-Christophe Jaskula <99367153+jcjaskula-aws@users.noreply.github.com> Date: Wed, 12 Jun 2024 17:24:30 -0400 Subject: [PATCH] turn into single-liner Co-authored-by: Lauren Capelluto --- src/autoqasm/reserved_keywords.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/autoqasm/reserved_keywords.py b/src/autoqasm/reserved_keywords.py index 016d362..916e398 100644 --- a/src/autoqasm/reserved_keywords.py +++ b/src/autoqasm/reserved_keywords.py @@ -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