Commit 2ff79174 authored by gwenn's avatar gwenn

Fix go vet and ineffassign warnings

parent 6330f45f
......@@ -89,7 +89,6 @@ func (p *Pool) get(wait bool) (*Conn, error) {
return conn, err
}
}
panic("unreachable")
}
func (p *Pool) waitForCreate() (*Conn, error) {
......
......@@ -657,7 +657,7 @@ func TestBindAndScanReflect(t *testing.T) {
type Enum uint
var enum Enum
null, err = s.ScanReflect(0, &enum)
_, err = s.ScanReflect(0, &enum)
checkNoError(t, err, "scan error: %s")
assert.Equal(t, Enum(1), enum)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment