From e8cad0f9f38bbca9feacfb2715610ab9633f87e1 Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Mon, 6 Jun 2016 17:42:16 +0800 Subject: [PATCH] pass golint --- api/base.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/base.go b/api/base.go index 4bd654345..7a7ff80df 100644 --- a/api/base.go +++ b/api/base.go @@ -71,8 +71,8 @@ func (b *BaseAPI) Validate(v interface{}) { } } -// DecodeJsonReqAndValidate does both decoding and validation -func (b *BaseAPI) DecodeJsonReqAndValidate(v interface{}) { +// DecodeJSONReqAndValidate does both decoding and validation +func (b *BaseAPI) DecodeJSONReqAndValidate(v interface{}) { b.DecodeJSONReq(v) b.Validate(v) }