Skip to content

Commit a47d67c

Browse files
Optimized code format (GH-28599)
Automerge-Triggered-By: GH:pablogsal
1 parent db0133f commit a47d67c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Parser/string_parser.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,9 +1127,7 @@ _PyPegen_FstringParser_ConcatFstring(Parser *p, FstringParser *state, const char
11271127

11281128
/* We know we have an expression. Convert any existing string
11291129
to a Constant node. */
1130-
if (!state->last_str) {
1131-
/* Do nothing. No previous literal. */
1132-
} else {
1130+
if (state->last_str) {
11331131
/* Convert the existing last_str literal to a Constant node. */
11341132
expr_ty last_str = make_str_node_and_del(p, &state->last_str, first_token, last_token);
11351133
if (!last_str || ExprList_Append(&state->expr_list, last_str) < 0) {

0 commit comments

Comments
 (0)