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 15, 2023
1 parent b6c0243 commit 4b64169
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 4b64169

Please sign in to comment.