common: remove duplicate check for curl

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>
This commit is contained in:
Daniel Bevenius 2024-04-04 07:19:19 +02:00
parent 4399f13fb9
commit e0f2a1bd9b
Failed to extract signature

View file

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