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) { ...@@ -89,7 +89,6 @@ func (p *Pool) get(wait bool) (*Conn, error) {
return conn, err return conn, err
} }
} }
panic("unreachable")
} }
func (p *Pool) waitForCreate() (*Conn, error) { func (p *Pool) waitForCreate() (*Conn, error) {
......
...@@ -657,7 +657,7 @@ func TestBindAndScanReflect(t *testing.T) { ...@@ -657,7 +657,7 @@ func TestBindAndScanReflect(t *testing.T) {
type Enum uint type Enum uint
var enum Enum var enum Enum
null, err = s.ScanReflect(0, &enum) _, err = s.ScanReflect(0, &enum)
checkNoError(t, err, "scan error: %s") checkNoError(t, err, "scan error: %s")
assert.Equal(t, Enum(1), enum) 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