Skip to content

Commit

Permalink
common: remove duplicate check for curl (#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 Apr 4, 2024
1 parent 9b84ae1 commit 4bcd6b9
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 4bcd6b9

Please sign in to comment.