From 782c7fe8147ff3a286623c1e3e63a18c21ba2e5a Mon Sep 17 00:00:00 2001 From: Greg Date: Mon, 12 Feb 2024 03:52:24 +0900 Subject: [PATCH] tidy up --- zero/string.go | 3 --- zero/time_test.go | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/zero/string.go b/zero/string.go index 4790b31..5eb45ff 100644 --- a/zero/string.go +++ b/zero/string.go @@ -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. diff --git a/zero/time_test.go b/zero/time_test.go index 577a2a1..330ab48 100644 --- a/zero/time_test.go +++ b/zero/time_test.go @@ -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