From da6897303adc0db1cd9772cdd8043cf152bd88bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20V=C4=83n=20H=C6=B0ng?= Date: Wed, 18 Dec 2019 17:57:44 +0700 Subject: [PATCH] error is always nil --- baked_in.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baked_in.go b/baked_in.go index 23f76b3..9d38191 100644 --- a/baked_in.go +++ b/baked_in.go @@ -1178,7 +1178,7 @@ func isURL(fl FieldLevel) bool { return false } - return err == nil + return true } panic(fmt.Sprintf("Bad field type %T", field.Interface()))