From e0f2a1bd9be91c131d13764b3ee38e5d9a5a88ce Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 4 Apr 2024 07:19:19 +0200 Subject: [PATCH] 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 --- common/common.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index b8323c1c1..3e2df6e34 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; }