Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fc84b3e

Browse files
committedSep 2, 2017
fix warning indentation
1 parent d9cf4fd commit fc84b3e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎cmd/dep/base_importer.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ func (i *baseImporter) importPackages(packages []importedPackage, defaultConstra
189189
pc.Constraint, err = i.sm.InferConstraint(prj.ConstraintHint, pc.Ident)
190190
if err != nil {
191191
pc.Constraint = gps.Any()
192-
err = errors.Wrapf(err, "Unable to interpret constraint '%s' for package %s. Using the 'any' constraint instead.")
193-
i.logger.Println(err)
194192
}
195193

196194
var version gps.Version
@@ -224,7 +222,7 @@ func (i *baseImporter) importPackages(packages []importedPackage, defaultConstra
224222
// Ignore pinned constraints
225223
if i.isConstraintPinned(pc.Constraint) {
226224
if i.verbose {
227-
i.logger.Printf("Ignoring pinned constraint %v for %v.\n", pc.Constraint, pc.Ident)
225+
i.logger.Printf(" Ignoring pinned constraint %v for %v.\n", pc.Constraint, pc.Ident)
228226
}
229227
pc.Constraint = gps.Any()
230228
}

0 commit comments

Comments
 (0)
This repository has been archived.