From 928612917d550c0cc22ddef8978f6ba130f55171 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Wed, 11 Jun 2014 07:59:43 -0500 Subject: [PATCH] Fix a couple go vet discovered issues --- conn.go | 1 - conn_test.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/conn.go b/conn.go index 51177555..1f9cdad5 100644 --- a/conn.go +++ b/conn.go @@ -496,7 +496,6 @@ func (c *Conn) SelectValueTo(w io.Writer, sql string, arguments ...interface{}) return rxErr } } - return } func (c *Conn) rxDataRowValueTo(w io.Writer, bodySize int32) (err error) { diff --git a/conn_test.go b/conn_test.go index b55e51a5..e6627eed 100644 --- a/conn_test.go +++ b/conn_test.go @@ -635,7 +635,7 @@ func TestTransaction(t *testing.T) { return true }) if err != nil { - t.Fatalf("Transaction unexpectedly failed: ", err) + t.Fatalf("Transaction unexpectedly failed: %v", err) } if !committed { t.Fatal("Transaction was not committed") @@ -655,7 +655,7 @@ func TestTransaction(t *testing.T) { return false }) if err != nil { - t.Fatalf("Transaction unexpectedly failed: ", err) + t.Fatalf("Transaction unexpectedly failed: %v", err) } if committed { t.Fatal("Transaction should not have been committed")