Skip to content

Commit df021c9

Browse files
author
Balaji Veeramani
committed
Fix style issue
1 parent b8d6c07 commit df021c9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/sagemaker/cli/compatibility/v2/ast_transformer.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,7 @@ def visit_Name(self, node):
9191
"""
9292
for name_checker in NAME_MODIFIERS:
9393
node = name_checker.check_and_modify_node(node)
94-
if node is None:
95-
return None
96-
node = ast.fix_missing_locations(node)
97-
return node
94+
return ast.fix_missing_locations(node) if node else None
9895

9996
def visit_Import(self, node):
10097
"""Visits an ``ast.Import`` node and returns a modified node or None.

0 commit comments

Comments
 (0)