diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2024-04-04 09:49:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 09:49:21 +0200 |
commit | 4bcd6b959ca3991084ad1d8464caf2a734e29b1d (patch) | |
tree | aed302967604b7b44286679598b1c89f269303fa | |
parent | 9b84ae1806cded4d6683c7b810925da5ead40607 (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.cpp | 5 |
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; } |