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/serve.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/buildtool/main/serve.cpp') diff --git a/src/buildtool/main/serve.cpp b/src/buildtool/main/serve.cpp index 87f1c9ac..622df15e 100644 --- a/src/buildtool/main/serve.cpp +++ b/src/buildtool/main/serve.cpp @@ -60,7 +60,7 @@ namespace { gsl::not_null const& rargs) noexcept -> bool { auto max_attempts = config["max-attempts"]; if (max_attempts.IsNotNull()) { - if (!max_attempts->IsNumber()) { + if (not max_attempts->IsNumber()) { Logger::Log( LogLevel::Error, "Invalid value for \"max-attempts\" {}. It must be a number.", @@ -71,7 +71,7 @@ namespace { } auto initial_backoff = config["initial-backoff-seconds"]; if (initial_backoff.IsNotNull()) { - if (!initial_backoff->IsNumber()) { + if (not initial_backoff->IsNumber()) { Logger::Log(LogLevel::Error, "Invalid value \"initial-backoff-seconds\" {}. It must " "be a number.", @@ -83,7 +83,7 @@ namespace { } auto max_backoff = config["max-backoff-seconds"]; if (max_backoff.IsNotNull()) { - if (!max_backoff->IsNumber()) { + if (not max_backoff->IsNumber()) { Logger::Log(LogLevel::Error, "Invalid value for \"max-backoff-seconds\" {}. It must " "be a number.", @@ -407,7 +407,7 @@ void ReadJustServeConfig(gsl::not_null const& clargs) { } clargs->endpoint.remote_execution_address = address->String(); } - if (!ParseRetryCliOptions(serve_config, &clargs->retry)) { + if (not ParseRetryCliOptions(serve_config, &clargs->retry)) { std::exit(kExitFailure); } } -- cgit v1.2.3