diff options
Diffstat (limited to 'third_party/nix/src/libutil/hash.cc')
-rw-r--r-- | third_party/nix/src/libutil/hash.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/third_party/nix/src/libutil/hash.cc b/third_party/nix/src/libutil/hash.cc index 9d14ad9dfe14..a2d6713f04ff 100644 --- a/third_party/nix/src/libutil/hash.cc +++ b/third_party/nix/src/libutil/hash.cc @@ -111,9 +111,15 @@ static std::string printHash16(const Hash& hash) { bool Hash::IsValidBase16(absl::string_view s) { for (char c : s) { - if ('0' <= c && c <= '9') continue; - if ('a' <= c && c <= 'f') continue; - if ('A' <= c && c <= 'F') continue; + if ('0' <= c && c <= '9') { + continue; + } + if ('a' <= c && c <= 'f') { + continue; + } + if ('A' <= c && c <= 'F') { + continue; + } return false; } return true; |