diff --git a/imports/imports.go b/imports/imports.go index c26c1946a6..67573f497e 100644 --- a/imports/imports.go +++ b/imports/imports.go @@ -276,7 +276,7 @@ func addImportSpaces(r io.Reader, breaks []string) []byte { } if inImports && len(breaks) > 0 { if m := impLine.FindStringSubmatch(s); m != nil { - if m[1] == string(breaks[0]) { + if m[1] == breaks[0] { out.WriteByte('\n') breaks = breaks[1:] }