mirror of
https://github.com/jackc/pgx.git
synced 2025-05-27 17:52:08 +00:00
Removes duplicate if/else
This commit is contained in:
parent
015b56a04f
commit
94cee0dce0
@ -67,14 +67,6 @@ func TestTimestampTzTranscode(t *testing.T) {
|
||||
if !inputTime.Equal(outputTime) {
|
||||
t.Errorf("Did not transcode time successfully: %v is not %v", outputTime, inputTime)
|
||||
}
|
||||
|
||||
err = conn.QueryRow("select $1::timestamptz", inputTime).Scan(&outputTime)
|
||||
if err != nil {
|
||||
t.Fatalf("QueryRow Scan failed: %v", err)
|
||||
}
|
||||
if !inputTime.Equal(outputTime) {
|
||||
t.Errorf("Did not transcode time successfully: %v is not %v", outputTime, inputTime)
|
||||
}
|
||||
}
|
||||
|
||||
// TODO - move these tests to pgtype
|
||||
|
Loading…
x
Reference in New Issue
Block a user