Fix import ordering presubmit test (#4422)

Automatically submitted.
This commit is contained in:
Miek Gieben 2021-01-24 18:28:49 +01:00 committed by GitHub
parent eba74389c4
commit 38d4dacb88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 1 deletions

View file

@ -293,7 +293,7 @@ func (w *testImportOrderingWalker) walk(path string, info os.FileInfo, _ error)
// Ok, now that we have the type, let's see if all members adhere to it.
// After that we check if the are in the right order.
for i := 0; i < bl; i++ {
for i := 0; i <= bl; i++ {
for _, p := range blocks[i] {
t := importtype(p.Path.Value)
if t != ip[i] {