Skip to content

Commit be761c2

Browse files
committed
Remove duplicate appends to shortList.
1 parent 99317dd commit be761c2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

yapf/yapflib/format_decision_state.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,13 +1211,11 @@ def _CalculateArgLengths(opening):
12111211
while token:
12121212
shortList.append(token)
12131213
if token.name == "COMMA":
1214-
shortList.append(token)
12151214
argList.append(shortList)
12161215
deltaList.append(delta)
12171216
shortList = list()
12181217
delta = 0
12191218
elif token.name == "LPAR":
1220-
shortList.append(token)
12211219
if _IsFunctionCallWithArguments(token.previous_token):
12221220
maxArg = max(_CalculateArgLengths(token))
12231221
endToken = token.matching_bracket
@@ -1226,7 +1224,6 @@ def _CalculateArgLengths(opening):
12261224
token = token.matching_bracket
12271225
shortList.append(token)
12281226
elif token.name == "RPAR":
1229-
shortList.append(token)
12301227
argList.append(shortList)
12311228
deltaList.append(delta)
12321229
break

0 commit comments

Comments
 (0)