summaryrefslogtreecommitdiff
path: root/src/hashutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hashutil.cpp')
-rw-r--r--src/hashutil.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hashutil.cpp b/src/hashutil.cpp
index f241903d..1b019f9e 100644
--- a/src/hashutil.cpp
+++ b/src/hashutil.cpp
@@ -187,9 +187,9 @@ do_hash_file(const Context& ctx,
check_temporal_macros ? InodeCache::ContentType::checked_for_temporal_macros
: InodeCache::ContentType::raw;
if (ctx.config.inode_cache()) {
- HashSourceCodeResult result;
- if (ctx.inode_cache.get(path, content_type, digest, &result)) {
- return result;
+ const auto result = ctx.inode_cache.get(path, content_type, digest);
+ if (result) {
+ return *result;
}
}
#else