remove unnecessary ok

This commit is contained in:
Yuxuan Li 2017-05-19 11:52:09 -07:00
parent d19bbe846e
commit ed64d51c18
1 changed files with 1 additions and 1 deletions

View File

@ -670,7 +670,7 @@ func (cc *ClientConn) GetMethodConfig(method string) MethodConfig {
m, ok := cc.sc.Methods[method]
if !ok {
i := strings.LastIndex(method, "/")
m, ok = cc.sc.Methods[method[:i+1]]
m, _ = cc.sc.Methods[method[:i+1]]
}
return m
}