wire: remove trailing CR at end of error about cycles (google/go-cloud#662)
This commit is contained in:
committed by
Ross Light
parent
282105c273
commit
ded9eb899b
@@ -421,7 +421,7 @@ func verifyAcyclic(providerMap *typeutil.Map, hasher typeutil.Hasher) []error {
|
|||||||
p := providerMap.At(curr[j]).(*ProvidedType).Provider()
|
p := providerMap.At(curr[j]).(*ProvidedType).Provider()
|
||||||
fmt.Fprintf(sb, "%s (%s.%s) ->\n", types.TypeString(curr[j], nil), p.Pkg.Path(), p.Name)
|
fmt.Fprintf(sb, "%s (%s.%s) ->\n", types.TypeString(curr[j], nil), p.Pkg.Path(), p.Name)
|
||||||
}
|
}
|
||||||
fmt.Fprintf(sb, "%s\n", types.TypeString(a, nil))
|
fmt.Fprintf(sb, "%s", types.TypeString(a, nil))
|
||||||
ec.add(errors.New(sb.String()))
|
ec.add(errors.New(sb.String()))
|
||||||
hasCycle = true
|
hasCycle = true
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user