Last analyzed 23f74aa 4 months ago
Default analysis branch is
Currently analyzing run
Don't use fmt.Sprintf("%s", x) unnecessarily SCC-S1025
5 months ago5 months old
the argument is already a string, there's no need to use fmt.Sprintf
15// Error makes it compatible with `error` interface
16func (he *HTTPError) Error() string {
17	if he.Internal == nil {
18		return fmt.Sprintf("%s", he.Message)19	}
20	return fmt.Sprintf("%s: %s", he.Message, he.Internal)