From af5af31aa0e4c9974ab5499f2bb6191e3b9ddb78 Mon Sep 17 00:00:00 2001 From: Tevin Wang Date: Mon, 22 Apr 2024 13:29:56 -0400 Subject: [PATCH] Update boolean isShard to snake case --- common/common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index 94e0b582b..32963c6c0 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -1866,7 +1866,7 @@ void llama_batch_add( #ifdef LLAMA_USE_CURL -static bool llama_download_file(CURL * curl, const char * url, const char * path, boolean_t isShard) { +static bool llama_download_file(CURL * curl, const char * url, const char * path, boolean_t is_shard) { bool force_download = false; // Set the URL, allow to follow http redirection @@ -2000,7 +2000,7 @@ static bool llama_download_file(CURL * curl, const char * url, const char * path curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile); // display download progress if not sharded - if (isShard) { + if (is_shard) { curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L); } else { curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);