Skip to content

Commit 6a40cd1

Browse files
committed
Remove extra space
Signed-off-by: Xiang Dai <[email protected]>
1 parent a5f5d21 commit 6a40cd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gci/gci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func getPkgInfo(line string, comment bool) (string, string, string) {
145145
if len(pkgArray) > 1 {
146146
return pkgArray[1], pkgArray[0], fmt.Sprintf("%s%s%s", commentFlag, blank, strings.TrimSpace(s[1]))
147147
} else {
148-
return pkgArray[0], "", fmt.Sprintf("%s%s%s", commentFlag, blank, strings.TrimSpace(s[1]))
148+
return strings.TrimSpace(pkgArray[0]), "", fmt.Sprintf("%s%s%s", commentFlag, blank, strings.TrimSpace(s[1]))
149149
}
150150
} else {
151151
pkgArray := strings.Split(line, blank)

0 commit comments

Comments
 (0)