From 2f27300fb08d988b87ddfa62ebec615e52fc2f3b Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 28 Jan 2018 19:13:27 +0300 Subject: golint --- protocol_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protocol_test.go b/protocol_test.go index 5c4fb124..ed3fe461 100644 --- a/protocol_test.go +++ b/protocol_test.go @@ -1,10 +1,10 @@ package roadrunner import ( - "testing" + "github.com/pkg/errors" "github.com/spiral/goridge" "github.com/stretchr/testify/assert" - "github.com/pkg/errors" + "testing" ) type relayMock struct { @@ -15,9 +15,9 @@ type relayMock struct { func (r *relayMock) Send(data []byte, flags byte) (err error) { if r.error { return errors.New("send error") - } else { - return nil } + + return nil } func (r *relayMock) Receive() (data []byte, p goridge.Prefix, err error) { -- cgit v1.2.3