ing
This commit is contained in:
parent
2af62df399
commit
c6729cf963
|
@ -98,10 +98,14 @@ func (rr *rpcRegistry) Invoke(codec protocol.RegistryCodec) (result interface{},
|
||||||
|
|
||||||
if nil != methodSpec.returnType {
|
if nil != methodSpec.returnType {
|
||||||
result = returnValues[0].Interface()
|
result = returnValues[0].Interface()
|
||||||
|
if nil != returnValues[1].Interface() {
|
||||||
err = returnValues[1].Interface().(error)
|
err = returnValues[1].Interface().(error)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if nil != returnValues[0].Interface() {
|
||||||
err = returnValues[0].Interface().(error)
|
err = returnValues[0].Interface().(error)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user