Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
guregu committed Feb 11, 2024
1 parent 7d9fc9f commit 782c7fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions zero/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import (
"fmt"
)

// nullBytes is a JSON null literal
var nullBytes = []byte("null")

// String is a nullable string.
// JSON marshals to a blank string if null.
// Considered null to SQL if zero.
Expand Down
4 changes: 2 additions & 2 deletions zero/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ func TestTimeValue(t *testing.T) {
ti := TimeFrom(timeValue1)
v, err := ti.Value()
maybePanic(err)
if ti.Time != timeValue1 {
t.Errorf("bad time.Time value: %v ≠ %v", ti.Time, timeValue1)
if v != timeValue1 {
t.Errorf("bad time.Time value: %v ≠ %v", v, timeValue1)
}

var nt time.Time
Expand Down

0 comments on commit 782c7fe

Please sign in to comment.