fix: staticcheck and deadcode findings repo-wide, modernize counting loops
This commit is contained in:
+1
-1
@@ -119,7 +119,7 @@ func fieldsSizeAlign(list *ast.FieldList) (size, align int, ok bool) {
|
||||
if n == 0 {
|
||||
n = 1
|
||||
}
|
||||
for i := 0; i < n; i++ {
|
||||
for range n {
|
||||
offset = alignUp(offset, ea)
|
||||
offset += es
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user