using errors instead of fmt

This commit is contained in:
Pratham Gadkari 2025-11-30 16:01:27 +05:30
parent ee1f501d4a
commit 6b6ac46ae3

View File

@ -7,7 +7,6 @@ package binding
import (
"encoding/hex"
"errors"
"fmt"
"mime/multipart"
"reflect"
"strconv"
@ -739,7 +738,7 @@ func TestTrySetCustomIntegration(t *testing.T) {
type badCustom struct{}
func (b *badCustom) UnmarshalParam(s string) error {
return fmt.Errorf("boom")
return errors.New("boom")
}
func TestTrySetCustomError(t *testing.T) {