mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
all: gofmt -w -r 'interface{} -> any' (#2874)
This commit is contained in:
@@ -12,16 +12,16 @@ import (
|
||||
)
|
||||
|
||||
// EncoderOfError returns a value encoder which always fails to encode.
|
||||
func (encodeExtension) EncoderOfError(format string, args ...interface{}) jsoniter.ValEncoder {
|
||||
func (encodeExtension) EncoderOfError(format string, args ...any) jsoniter.ValEncoder {
|
||||
return decoratorOfError(format, args...)
|
||||
}
|
||||
|
||||
// DecoderOfError returns a value decoder which always fails to decode.
|
||||
func (decodeExtension) DecoderOfError(format string, args ...interface{}) jsoniter.ValDecoder {
|
||||
func (decodeExtension) DecoderOfError(format string, args ...any) jsoniter.ValDecoder {
|
||||
return decoratorOfError(format, args...)
|
||||
}
|
||||
|
||||
func decoratorOfError(format string, args ...interface{}) errorCodec {
|
||||
func decoratorOfError(format string, args ...any) errorCodec {
|
||||
err := fmt.Errorf(format, args...)
|
||||
return errorCodec{err}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user