Codebase list golang-github-go-kit-kit / 8984c3a
fixed comments Olivier Gagnon 8 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4646 }
4747
4848 // We want json.Marshaler and encoding.TextMarshaller to take priority over
49 // err.Error() and v.String(). So we force a no-op if it's one of those 2
50 // case.
49 // err.Error() and v.String(). But json.Marshall (called later) does that by
50 // default so we force a no-op if it's one of those 2 case.
5151 switch x := v.(type) {
5252 case json.Marshaler:
5353 case encoding.TextMarshaler: