summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2024-04-04 09:49:21 +0200
committerGitHub <noreply@github.com>2024-04-04 09:49:21 +0200
commit4bcd6b959ca3991084ad1d8464caf2a734e29b1d (patch)
treeaed302967604b7b44286679598b1c89f269303fa
parent9b84ae1806cded4d6683c7b810925da5ead40607 (diff)
common: remove duplicate check for curl (#6471)
This commit removes one of the two identical checks for curl being NULL in llama_load_model_from_url. Signed-off-by: Daniel Bevenius <daniel.bevenius@gmail.com>
-rw-r--r--common/common.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/common/common.cpp b/common/common.cpp
index b8323c1c..3e2df6e3 100644
--- a/common/common.cpp
+++ b/common/common.cpp
@@ -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;
}