summaryrefslogtreecommitdiff
path: root/src/buildtool/main/describe.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-08-05 12:40:04 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-08-07 14:43:19 +0200
commited6f31f4c9939d6cc8d4d317d561a94545750b0b (patch)
tree122e2a01c4a56b0fc25d94236d459101ffb80f65 /src/buildtool/main/describe.cpp
parent4989605b096701fee6f1049bdad0827f81d9fb00 (diff)
downloadjustbuild-ed6f31f4c9939d6cc8d4d317d561a94545750b0b.tar.gz
Replace classic C boolean operators with keywords
! => not; && => and, || => or
Diffstat (limited to 'src/buildtool/main/describe.cpp')
-rw-r--r--src/buildtool/main/describe.cpp6
1 files changed, 3 insertions, 3 deletions
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());