mirror of
https://github.com/goharbor/harbor
synced 2024-09-20 20:27:44 +00:00
pass golint
This commit is contained in:
parent
3f6eace9cb
commit
e8cad0f9f3
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user