diff options
author | Wolfy-J <[email protected]> | 2018-01-28 19:01:22 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-01-28 19:01:22 +0300 |
commit | 76d72becd1226d8d79ca592c89693a629dc54dec (patch) | |
tree | 8aa5e17a811b03c4902046a47ee7e4ac04af3561 | |
parent | da67acbb1bdfa1e466483bf7ab1fdc4118fdc8fd (diff) |
no need for nil context
-rw-r--r-- | protocol.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/protocol.go b/protocol.go index 0a0ec37f..97d40c0c 100644 --- a/protocol.go +++ b/protocol.go @@ -16,10 +16,6 @@ type pidCommand struct { } func sendHead(rl goridge.Relay, v interface{}) error { - if v == nil { - rl.Send(nil, goridge.PayloadControl) - } - if data, ok := v.([]byte); ok { return rl.Send(data, goridge.PayloadControl|goridge.PayloadRaw) } |