From 30d62a301e668a6b20906104ff66fa3aad3354c3 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 20 Jun 2024 10:29:17 +0200 Subject: Use a general boolean for compatible in MultiRepoCommonArguments --- src/other_tools/just_mr/fetch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/other_tools/just_mr/fetch.cpp') diff --git a/src/other_tools/just_mr/fetch.cpp b/src/other_tools/just_mr/fetch.cpp index 0f0a0ef1..0aab2549 100644 --- a/src/other_tools/just_mr/fetch.cpp +++ b/src/other_tools/just_mr/fetch.cpp @@ -398,7 +398,7 @@ auto MultiRepoFetch(std::shared_ptr const& config, common_args.remote_serve_address, auth_args); IExecutionApi::Ptr local_api{std::make_unique()}; - bool remote_compatible{common_args.compatible == true}; + bool remote_compatible{common_args.compatible}; // setup the API for serving roots auto serve_config = JustMR::Utils::CreateServeConfig( @@ -425,7 +425,7 @@ auto MultiRepoFetch(std::shared_ptr const& config, "serve endpoint failed. Serve endpoint ignored."); serve = std::nullopt; } - if (*compatible != remote_compatible) { + if (*compatible != common_args.compatible) { Logger::Log( LogLevel::Warning, "Provided serve endpoint operates in a different compatibility " -- cgit v1.2.3