Skip to content

Commit

Permalink
lint: address code reviews from https://go-review.googlesource.com/c/…
Browse files Browse the repository at this point in the history
  • Loading branch information
leonelquinteros committed Mar 5, 2018
1 parent 63f0424 commit d9cf068
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"unicode/utf8"

"golang.org/x/tools/go/ast/astutil"

"golang.org/x/tools/go/gcexportdata"
)

Expand Down Expand Up @@ -1693,7 +1692,7 @@ func (f *file) srcLineWithMatch(node ast.Node, pattern string) (m []string) {
return rx.FindStringSubmatch(line)
}

// imports returns true if the current file imports the specified package path
// imports returns true if the current file imports the specified package path.
func (f *file) imports(importPath string) bool {
all := astutil.Imports(f.fset, f.f)
for _, p := range all {
Expand Down

0 comments on commit d9cf068

Please sign in to comment.