Skip to content

Commit

Permalink
common: remove duplicate check for curl (ggerganov#6471)
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 authored and tybalex committed Apr 17, 2024
1 parent 28eee87 commit 0aceeae
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 0aceeae

Please sign in to comment.