mirror of https://github.com/grpc/grpc-go.git
remove unnecessary ok
This commit is contained in:
parent
d19bbe846e
commit
ed64d51c18
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue