diff options
author | Wolfy-J <[email protected]> | 2018-01-28 19:13:27 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-01-28 19:13:27 +0300 |
commit | 2f27300fb08d988b87ddfa62ebec615e52fc2f3b (patch) | |
tree | 838740ee5be3de56438334b3ebebaa12cf96d6e4 | |
parent | 7fa0ea8e9b18697fe06673ba9c5f24f32b06afa2 (diff) |
golintv0.9.0
-rw-r--r-- | protocol_test.go | 8 |
1 files 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) { |