diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/buildtool/execution_api/execution_service/cas_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/execution_service/cas_server.cpp b/src/buildtool/execution_api/execution_service/cas_server.cpp index e68092f8..49939c20 100644 --- a/src/buildtool/execution_api/execution_service/cas_server.cpp +++ b/src/buildtool/execution_api/execution_service/cas_server.cpp @@ -32,7 +32,7 @@ #include "src/utils/cpp/hex_string.hpp" #include "src/utils/cpp/verify_hash.hpp" -static constexpr std::size_t kJustHashLength = 42; +static constexpr std::size_t kGitSHA1Length = 42; static constexpr std::size_t kSHA256Length = 64; static auto IsValidHash(std::string const& x) -> bool { @@ -40,7 +40,7 @@ static auto IsValidHash(std::string const& x) -> bool { auto const& length = x.size(); return !error_msg and ((Compatibility::IsCompatible() and length == kSHA256Length) or - length == kJustHashLength); + length == kGitSHA1Length); } auto CASServiceImpl::FindMissingBlobs( |