]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
common: remove duplicate check for curl (#6471)
authorDaniel Bevenius <redacted>
Thu, 4 Apr 2024 07:49:21 +0000 (09:49 +0200)
committerGitHub <redacted>
Thu, 4 Apr 2024 07:49:21 +0000 (09:49 +0200)
This commit removes one of the two identical checks for curl being NULL
in llama_load_model_from_url.

Signed-off-by: Daniel Bevenius <redacted>
common/common.cpp

index b8323c1c1a90b143e14dfa03e5c3dc2602e03bca..3e2df6e34adb434fbab8c5d4af487bf39543df17 100644 (file)
@@ -1928,11 +1928,6 @@ struct llama_model * llama_load_model_from_url(
         return NULL;
     }
 
-    if (!curl) {
-        fprintf(stderr, "%s: error initializing libcurl\n", __func__);
-        return NULL;
-    }
-
     if (!llama_download_file(curl, model_url, path_model)) {
         return NULL;
     }