Skip to content

Commit 4c059ae

Browse files
committed
fix(pkg): golang lint
1 parent 030062e commit 4c059ae

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

time/time_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package time
22

33
import (
4-
"fmt"
54
"testing"
65
)
76

@@ -19,7 +18,7 @@ func TestUnMarshalText(t *testing.T) {
1918
t.Error("expected " + goodTime + " to be marshal-able.")
2019
}
2120
if dummyTime.Year() != 2006 {
22-
t.Error(fmt.Sprintf("expected year to be 2006; got %d.", dummyTime.Year()))
21+
t.Errorf("expected year to be 2006; got %d.", dummyTime.Year())
2322
}
2423
}
2524

@@ -34,7 +33,7 @@ func TestUnMarshalText(t *testing.T) {
3433
t.Error("expected " + goodTime + " to be marshal-able.")
3534
}
3635
if dummyTime.Year() != 2007 {
37-
t.Error(fmt.Sprintf("expected year to be 2007; got %d.", dummyTime.Year()))
36+
t.Errorf("expected year to be 2007; got %d.", dummyTime.Year())
3837
}
3938
}
4039

0 commit comments

Comments
 (0)