Skip to content

Commit 4bcd6b9

Browse files
authored
common: remove duplicate check for curl (#6471)
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]>
1 parent 9b84ae1 commit 4bcd6b9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

common/common.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,11 +1928,6 @@ struct llama_model * llama_load_model_from_url(
19281928
return NULL;
19291929
}
19301930

1931-
if (!curl) {
1932-
fprintf(stderr, "%s: error initializing libcurl\n", __func__);
1933-
return NULL;
1934-
}
1935-
19361931
if (!llama_download_file(curl, model_url, path_model)) {
19371932
return NULL;
19381933
}

0 commit comments

Comments
 (0)