chore: use errors.New to replace fmt.Errorf will much better (#3789)

This commit is contained in:
Cheng
2024-04-21 10:11:06 +08:00
committed by GitHub
parent 56f8aa6912
commit 62be2050dd
3 changed files with 5 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ import (
"github.com/ollama/ollama/gpu"
)
var errPayloadMissing = fmt.Errorf("expected payloads not included in this build of ollama")
var errPayloadMissing = errors.New("expected payloads not included in this build of ollama")
func Init() error {
payloadsDir, err := gpu.PayloadsDir()