Skip to content

Commit 7fe3d6e

Browse files
committed
Fix golangci-lint 'S1008'.
1 parent c0a783f commit 7fe3d6e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/framework/flex/autoflex_expand.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,11 +1595,8 @@ func isXMLWrapperStruct(t reflect.Type) bool {
15951595
nNonAnonymousFields++
15961596
}
15971597
}
1598-
if nNonAnonymousFields != 2 {
1599-
return false
1600-
}
16011598

1602-
return true
1599+
return nNonAnonymousFields == 2
16031600
}
16041601

16051602
// nestedObjectCollectionToXMLWrapper converts a NestedObjectCollectionValue to an XML wrapper struct

0 commit comments

Comments
 (0)