Package list golang-github-go-kit-kit / 7e2c58b
Remove unnecessary error check. Cameron Stitt 4 years ago
2 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
4343 default:
4444 key = fmt.Sprint(x)
4545 }
46 if x, ok := v.(error); ok {
47 v = safeError(x)
48 }
4946
5047 // We want json.Marshaler and encoding.TextMarshaller to take priority over
5148 // err.Error() and v.String(). But json.Marshall (called later) does that by
8787 return "string"
8888 }
8989
90 func (aller) Error() string {
91 return "error"
92 }
93
9094 // textstringer implements encoding.TextMarshaler and fmt.Stringer.
9195 type textstringer struct{}
9296