Remove redundant stuff
This commit is contained in:
parent
08c7552515
commit
fb382876ef
@ -463,7 +463,6 @@ func parseDSNParams(cfg *Config, params string) (err error) {
|
|||||||
// Collation
|
// Collation
|
||||||
case "collation":
|
case "collation":
|
||||||
cfg.Collation = value
|
cfg.Collation = value
|
||||||
break
|
|
||||||
|
|
||||||
case "columnsWithAlias":
|
case "columnsWithAlias":
|
||||||
var isBool bool
|
var isBool bool
|
||||||
|
@ -3,7 +3,6 @@ package slave
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/localhots/bocadillo/buffer"
|
"github.com/localhots/bocadillo/buffer"
|
||||||
@ -138,10 +137,3 @@ func (c *Conn) runCmd(data []byte) error {
|
|||||||
}
|
}
|
||||||
return c.conn.ReadResultOK()
|
return c.conn.ReadResultOK()
|
||||||
}
|
}
|
||||||
|
|
||||||
func notEOF(err error) error {
|
|
||||||
if err == io.EOF {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user