punch the linter in the face

This commit is contained in:
Patrick Devine 2024-07-08 18:40:24 -07:00
parent 6367b7449e
commit c37ab3b9f2

View File

@ -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 &gts == 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))
}
}
}