mock-tikv: fix golint (#4557)

golint has updated to check redundant `if`.
This commit is contained in:
Ewan Chou
2017-09-19 10:40:49 +08:00
committed by GitHub
parent aacfbf6fd3
commit 339880caad

View File

@ -191,11 +191,7 @@ func (h *rpcHandler) checkRequest(ctx *kvrpcpb.Context, size int) *errorpb.Error
if err := h.checkRequestContext(ctx); err != nil {
return err
}
if err := h.checkRequestSize(size); err != nil {
return err
}
return nil
return h.checkRequestSize(size)
}
func (h *rpcHandler) checkKeyInRegion(key []byte) bool {