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

Commit

Permalink
Fix issue 1742 by replacing '>' with '>='
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Wang <[email protected]>
  • Loading branch information
twang2218 committed Mar 8, 2018
1 parent 5bdae26 commit 7144ce2
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 7144ce2

Please sign in to comment.