summaryrefslogtreecommitdiff
path: root/protocol.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-28 19:01:22 +0300
committerWolfy-J <[email protected]>2018-01-28 19:01:22 +0300
commit76d72becd1226d8d79ca592c89693a629dc54dec (patch)
tree8aa5e17a811b03c4902046a47ee7e4ac04af3561 /protocol.go
parentda67acbb1bdfa1e466483bf7ab1fdc4118fdc8fd (diff)
no need for nil context
Diffstat (limited to 'protocol.go')
-rw-r--r--protocol.go4
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)
}