Skip to content

Commit

Permalink
Simplified case match
Browse files Browse the repository at this point in the history
  • Loading branch information
andrecsilva committed Nov 13, 2023
1 parent e604a21 commit 970b3f2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ def leave_FormattedStringExpression(
]:
expr = original_node.expression
match expr:
case SimpleString(): # type: ignore
if expr.raw_value == "":
return RemovalSentinel.REMOVE
case SimpleString() if expr.raw_value == "": # type: ignore
return RemovalSentinel.REMOVE
return updated_node

def leave_BinaryOperation(
Expand Down

0 comments on commit 970b3f2

Please sign in to comment.