From 377fbd23788f22409299274d0f0040697082bd5d Mon Sep 17 00:00:00 2001 From: Jrelvas <55360900+Noted-Jrelvas@users.noreply.github.com> Date: Tue, 17 Oct 2023 09:53:20 +0100 Subject: [PATCH] gpu: use PrimeNone string instead of literal I just noticed this and it was really bothering me. It had to be fixed. --- gpu/target/targetgpu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu/target/targetgpu.go b/gpu/target/targetgpu.go index d171a7d6..2213b120 100644 --- a/gpu/target/targetgpu.go +++ b/gpu/target/targetgpu.go @@ -33,7 +33,7 @@ func (pt PrimeType) String() string { func GetPrimeType(s string) PrimeType { if s == "" { - s = "none" + s = PrimeNone.String() } switch s {