fix typo in finalizeList

This commit is contained in:
Krzysztof Kowalczyk 2018-01-31 00:41:06 -08:00
parent 37c754154c
commit 2eb026b08c
1 changed files with 2 additions and 2 deletions

View File

@ -1221,8 +1221,8 @@ func finalizeList(list *ast.List) {
// between any of them:
subItems := item.GetParent().GetChildren()
lastSubItemIdx := len(subItems) - 1
for i, subItem := range subItems {
isLastSubItem := i == lastSubItemIdx
for j, subItem := range subItems {
isLastSubItem := j == lastSubItemIdx
if (!isLastItem || !isLastSubItem) && endsWithBlankLine(subItem) {
list.Tight = false
break