@cryptotaxi247 / kubo / commits / 973dead06

remove dead code

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Dec 15, 2017 at 10:31 UTC 973dead066e202c8701e3b5b9c3aaeafe7eb14d2
1 file changed -9
commands/command.go
-9
@@ -114,15 +114,6 @@ func (c *Command) Call(req Request) Response {
114 isChan = actualType.Kind() == reflect.Chan
115 }
116
117 - if isChan {
118 - if ch, ok := output.(<-chan interface{}); ok {
119 - output = ch
120 -
121 - } else if ch, ok := output.(chan interface{}); ok {
122 - output = (<-chan interface{})(ch)
123 - }
124 - }
125 -
117 // If the command specified an output type, ensure the actual value
118 // returned is of that type
119 if cmd.Type != nil && !isChan {