Skip to content

Commit

Permalink
clean up import verifier error
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Jan 3, 2018
1 parent dc73150 commit b27d4b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/import-verifier/import-verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,14 @@ func main() {

// make sure that all the allowed imports are used
if unused := unusedPackageImports(restriction.AllowedImportPackages, packages); len(unused) > 0 {
log.Printf("-- found unused package imports\n")
log.Printf("-- found unused allowed package imports(remove them)\n")
for _, unusedPackage := range unused {
log.Printf("\t%s\n", unusedPackage)
}
failedRestrictionCheck = true
}
if unused := unusedPackageImportRoots(restriction.AllowedImportPackageRoots, packages); len(unused) > 0 {
log.Printf("-- found unused package import roots\n")
log.Printf("-- found unused allowed package import roots(remove them)\n")
for _, unusedPackage := range unused {
log.Printf("\t%s\n", unusedPackage)
}
Expand Down

0 comments on commit b27d4b4

Please sign in to comment.