Skip to content

Commit 608d370

Browse files
cuishuanggopherbot
authored andcommitted
internal/imports: use a more straightforward return value
Change-Id: Ibd8249da636a854dd1a53c047e3d215ef45c911f Reviewed-on: https://go-review.googlesource.com/c/tools/+/653196 Reviewed-by: Michael Pratt <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent 408d2e2 commit 608d370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/imports/fix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ func fixImportsDefault(fset *token.FileSet, f *ast.File, filename string, env *P
559559
return err
560560
}
561561
apply(fset, f, fixes)
562-
return err
562+
return nil
563563
}
564564

565565
// getFixes gets the import fixes that need to be made to f in order to fix the imports.

0 commit comments

Comments
 (0)