Unverified 提交 73170e55 作者: Whyrusleeping 提交者: GitHub

Merge pull request #4497 from ipfs/fix/ineff-assign

commands: remove dead code
......@@ -114,15 +114,6 @@ func (c *Command) Call(req Request) Response {
isChan = actualType.Kind() == reflect.Chan
}
if isChan {
if ch, ok := output.(<-chan interface{}); ok {
output = ch
} else if ch, ok := output.(chan interface{}); ok {
output = (<-chan interface{})(ch)
}
}
// If the command specified an output type, ensure the actual value
// returned is of that type
if cmd.Type != nil && !isChan {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论