diff --git a/internal/imports/fix.go b/internal/imports/fix.go index 72323f5859..615dc014c5 100644 --- a/internal/imports/fix.go +++ b/internal/imports/fix.go @@ -444,7 +444,7 @@ func apply(fset *token.FileSet, f *ast.File, fixes []*importFix) bool { case setImportName: // Find the matching import path and change the name. for _, spec := range f.Imports { - path := strings.Trim(spec.Path.Value, `""`) + path := strings.Trim(spec.Path.Value, `"`) if path == fix.info.importPath { spec.Name = &ast.Ident{ Name: fix.info.name,