irby / passwordless-authenticator-poc

Don't use fmt.Sprintf("%s", x) unnecessarily SCC-S1025
7 months ago7 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)