Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 42e3d76

Browse files
authored
Merge pull request #1743 from twang2218/issue-1742-indexbyte
Fix issue 1742 by replacing '>' with '>='
2 parents ce973b0 + 7144ce2 commit 42e3d76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gps/pkgtree/pkgtree.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ func findImportComment(pkgName *ast.Ident, c *ast.CommentGroup) string {
349349
return ""
350350
}
351351
text = text[:end]
352-
if bytes.IndexByte(text, '\n') > 0 {
352+
if bytes.IndexByte(text, '\n') >= 0 {
353353
// multiline comment, can't be an import comment
354354
return ""
355355
}

0 commit comments

Comments
 (0)