From 0849b1840eb2c022b852de3287e31b23225ea28a Mon Sep 17 00:00:00 2001 From: Streppel Date: Wed, 27 Nov 2019 08:47:07 -0300 Subject: [PATCH] removing unecessary type conversion --- _examples/gin-upgrading-overriding/v8_to_v9.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_examples/gin-upgrading-overriding/v8_to_v9.go b/_examples/gin-upgrading-overriding/v8_to_v9.go index 65abe02..8c310a7 100644 --- a/_examples/gin-upgrading-overriding/v8_to_v9.go +++ b/_examples/gin-upgrading-overriding/v8_to_v9.go @@ -22,7 +22,7 @@ func (v *defaultValidator) ValidateStruct(obj interface{}) error { v.lazyinit() if err := v.validate.Struct(obj); err != nil { - return error(err) + return err } }