summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/storage/config.hpp')
-rw-r--r--src/buildtool/storage/config.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/buildtool/storage/config.hpp b/src/buildtool/storage/config.hpp
index 5861977e..56274c02 100644
--- a/src/buildtool/storage/config.hpp
+++ b/src/buildtool/storage/config.hpp
@@ -222,10 +222,9 @@ class StorageConfig::Builder final {
}
}
- auto hash_function = default_config.hash_function;
- if (hash_type_.has_value()) {
- hash_function = HashFunction{*hash_type_};
- }
+ auto const hash_function = hash_type_.has_value()
+ ? HashFunction{*hash_type_}
+ : default_config.hash_function;
// Hash the execution backend description
auto backend_description_id = default_config.backend_description_id;