From 76d72becd1226d8d79ca592c89693a629dc54dec Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 28 Jan 2018 19:01:22 +0300 Subject: no need for nil context --- protocol.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'protocol.go') 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) } -- cgit v1.2.3