diff --git a/README.md b/README.md
index d2acd9e..20ef768 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@

-[](https://github.com/duke-git/lancet/releases)
+[](https://github.com/duke-git/lancet/releases)
[](https://pkg.go.dev/github.com/duke-git/lancet/v2)
[](https://goreportcard.com/report/github.com/duke-git/lancet/v2)
[](https://github.com/duke-git/lancet/actions/workflows/codecov.yml)
diff --git a/README_zh-CN.md b/README_zh-CN.md
index 76de379..6502c78 100644
--- a/README_zh-CN.md
+++ b/README_zh-CN.md
@@ -4,7 +4,7 @@

-[](https://github.com/duke-git/lancet/releases)
+[](https://github.com/duke-git/lancet/releases)
[](https://pkg.go.dev/github.com/duke-git/lancet/v2)
[](https://goreportcard.com/report/github.com/duke-git/lancet/v2)
[](https://github.com/duke-git/lancet/actions/workflows/codecov.yml)
diff --git a/datetime/conversion_test.go b/datetime/conversion_test.go
index a8219ab..6319da0 100644
--- a/datetime/conversion_test.go
+++ b/datetime/conversion_test.go
@@ -19,10 +19,10 @@ func TestToUnix(t *testing.T) {
func TestToFormat(t *testing.T) {
assert := internal.NewAssert(t, "TestToFormat")
- tm, err := NewFormat("2022/03/18 17:04:05")
+ _, err := NewFormat("2022/03/18 17:04:05")
assert.IsNotNil(err)
- tm, err = NewFormat("2022-03-18 17:04:05")
+ tm, err := NewFormat("2022-03-18 17:04:05")
assert.IsNil(err)
t.Log("ToFormat -> ", tm.ToFormat())
@@ -31,23 +31,22 @@ func TestToFormat(t *testing.T) {
func TestToFormatForTpl(t *testing.T) {
assert := internal.NewAssert(t, "TestToFormatForTpl")
- tm, err := NewFormat("2022/03/18 17:04:05")
+ _, err := NewFormat("2022/03/18 17:04:05")
assert.IsNotNil(err)
- tm, err = NewFormat("2022-03-18 17:04:05")
+ tm, err := NewFormat("2022-03-18 17:04:05")
assert.IsNil(err)
t.Log("ToFormatForTpl -> ", tm.ToFormatForTpl("2006/01/02 15:04:05"))
-
}
func TestToIso8601(t *testing.T) {
assert := internal.NewAssert(t, "TestToIso8601")
- tm, err := NewISO8601("2022-03-18 17:04:05")
+ _, err := NewISO8601("2022-03-18 17:04:05")
assert.IsNotNil(err)
- tm, err = NewISO8601("2006-01-02T15:04:05.999Z")
+ tm, err := NewISO8601("2006-01-02T15:04:05.999Z")
assert.IsNil(err)
t.Log("ToIso8601 -> ", tm.ToIso8601())