Remove redundant stuff
This commit is contained in:
@@ -3,7 +3,6 @@ package slave
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"github.com/localhots/bocadillo/buffer"
|
||||
@@ -138,10 +137,3 @@ func (c *Conn) runCmd(data []byte) error {
|
||||
}
|
||||
return c.conn.ReadResultOK()
|
||||
}
|
||||
|
||||
func notEOF(err error) error {
|
||||
if err == io.EOF {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user