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/utils/cpp/verify_hash.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/cpp/verify_hash.hpp') diff --git a/src/utils/cpp/verify_hash.hpp b/src/utils/cpp/verify_hash.hpp index e827680d..f105eb2b 100644 --- a/src/utils/cpp/verify_hash.hpp +++ b/src/utils/cpp/verify_hash.hpp @@ -27,7 +27,7 @@ /// \returns Nullopt on success, error message on failure. [[nodiscard]] static inline auto IsAHash(std::string const& s) noexcept -> std::optional { - if (!std::all_of(s.begin(), s.end(), [](unsigned char c) { + if (not std::all_of(s.begin(), s.end(), [](unsigned char c) { return std::isxdigit(c); })) { return fmt::format("Invalid hash {}", s); -- cgit v1.2.3