Skip to content

Commit

Permalink
common: remove duplicate check for curl
Browse files Browse the repository at this point in the history
This commit removes one of the two identical checks for curl being NULL
in llama_load_model_from_url.

Signed-off-by: Daniel Bevenius <[email protected]>
  • Loading branch information
danbev committed Apr 4, 2024
1 parent 4399f13 commit e0f2a1b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e0f2a1b

Please sign in to comment.