From ed6f31f4c9939d6cc8d4d317d561a94545750b0b Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 5 Aug 2024 12:40:04 +0200 Subject: Replace classic C boolean operators with keywords ! => not; && => and, || => or --- src/buildtool/main/describe.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/buildtool/main/describe.cpp') diff --git a/src/buildtool/main/describe.cpp b/src/buildtool/main/describe.cpp index e3ab1223..c706545b 100644 --- a/src/buildtool/main/describe.cpp +++ b/src/buildtool/main/describe.cpp @@ -292,7 +292,7 @@ auto DescribeTarget(BuildMaps::Target::ConfiguredTarget const& id, auto const& repo_name = id.target.ToModule().repository; auto target_root_id = repo_config->TargetRoot(repo_name)->GetAbsentTreeId(); - if (!target_root_id) { + if (not target_root_id) { Logger::Log( LogLevel::Error, "Failed to get the target root id for repository \"{}\"", @@ -313,8 +313,8 @@ auto DescribeTarget(BuildMaps::Target::ConfiguredTarget const& id, } auto const& desc_info = Artifact::ObjectInfo{.digest = *dgst, .type = ObjectType::File}; - if (!apis.local->IsAvailable(*dgst)) { - if (!apis.remote->RetrieveToCas({desc_info}, *apis.local)) { + if (not apis.local->IsAvailable(*dgst)) { + if (not apis.remote->RetrieveToCas({desc_info}, *apis.local)) { Logger::Log(LogLevel::Error, "Failed to retrieve blob {} from remote CAS", desc_info.ToString()); -- cgit v1.2.3