From c37ab3b9f281f27ebf32aea5c8da12a488573a3a Mon Sep 17 00:00:00 2001 From: Patrick Devine Date: Mon, 8 Jul 2024 18:40:24 -0700 Subject: [PATCH] punch the linter in the face --- convert/convert_test.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/convert/convert_test.go b/convert/convert_test.go index ebdaf9967..7d6eb05de 100644 --- a/convert/convert_test.go +++ b/convert/convert_test.go @@ -172,12 +172,12 @@ func TestConvertNPZ(t *testing.T) { t.Fatal(err) } if ggml == nil { - t.Fatal(fmt.Errorf("ggla didn't convert to ggml correctly")) + t.Fatalf("ggla didn't convert to ggml correctly") } kv := ggml.KV() if kv == nil { - t.Fatal(fmt.Errorf("no lora KVs were set")) + t.Fatalf("no lora KVs were set") } r, ok := kv["r"] @@ -191,11 +191,8 @@ func TestConvertNPZ(t *testing.T) { } gts := ggml.Tensors() - if >s == nil { - t.Fatal(fmt.Errorf("no tensors were found")) - } - if len(ts) != len(gts.Items) { - t.Errorf("got: %d want: %d tensors in ggla", len(gts.Items), len(ts)) + if len(ts) != len(gts.Items) { //nolint:errcheck + t.Fatalf("got: %d want: %d tensors in ggla", len(gts.Items), len(ts)) } } }