From 5d25db886b3d0911ab2c5a88c828af3501357e39 Mon Sep 17 00:00:00 2001 From: Izzat Zuliya R <34620941+izzatzr@users.noreply.github.com> Date: Sun, 22 Oct 2023 20:35:18 +0800 Subject: [PATCH] fix unused var error error description: gpu declared and not used --- embed_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embed_linux.go b/embed_linux.go index f9a8b8d..30dcfed 100644 --- a/embed_linux.go +++ b/embed_linux.go @@ -17,7 +17,7 @@ var libName = "librwkv-*.so" func getDl(gpu bool) []byte { if gpu { - gpu, _ := GetGPUInfo() + _, _ = GetGPUInfo() } if runtime.GOARCH == "amd64" { return libRwkv