From 13e86fbbd0986a5f231f4f6bd5fd2423ba75f170 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 8 Oct 2024 12:56:16 +0200 Subject: Name global constants using kCamelCase. --- src/buildtool/file_system/git_repo.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/buildtool/file_system/git_repo.cpp') diff --git a/src/buildtool/file_system/git_repo.cpp b/src/buildtool/file_system/git_repo.cpp index 800da4b8..176535b3 100644 --- a/src/buildtool/file_system/git_repo.cpp +++ b/src/buildtool/file_system/git_repo.cpp @@ -358,12 +358,10 @@ void fetch_backend_free(git_odb_backend* /*_backend*/) {} auto const kFetchIntoODBParent = CreateFetchIntoODBParent(); // callback to remote fetch without an SSL certificate check -const auto certificate_passthrough_cb = [](git_cert* /*cert*/, - int /*valid*/, - const char* /*host*/, - void* /*payload*/) -> int { - return 0; -}; +const auto kCertificatePassthrough = [](git_cert* /*cert*/, + int /*valid*/, + const char* /*host*/, + void* /*payload*/) -> int { return 0; }; } // namespace #endif // BOOTSTRAP_BUILD_TOOL @@ -897,7 +895,7 @@ auto GitRepo::FetchFromPath(std::shared_ptr cfg, // no proxy fetch_opts.proxy_opts.type = GIT_PROXY_NONE; // no SSL verification - fetch_opts.callbacks.certificate_check = certificate_passthrough_cb; + fetch_opts.callbacks.certificate_check = kCertificatePassthrough; // disable update of the FETCH_HEAD pointer fetch_opts.update_fetchhead = 0; -- cgit v1.2.3