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

Commit

Permalink
Merge pull request #1743 from twang2218/issue-1742-indexbyte
Browse files Browse the repository at this point in the history
Fix issue 1742 by replacing '>' with '>='
  • Loading branch information
sdboyer committed Mar 24, 2018
2 parents ce973b0 + 7144ce2 commit 42e3d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gps/pkgtree/pkgtree.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func findImportComment(pkgName *ast.Ident, c *ast.CommentGroup) string {
return ""
}
text = text[:end]
if bytes.IndexByte(text, '\n') > 0 {
if bytes.IndexByte(text, '\n') >= 0 {
// multiline comment, can't be an import comment
return ""
}
Expand Down

0 comments on commit 42e3d76

Please sign in to comment.