summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-10-02 17:39:13 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-10-07 13:37:39 +0200
commit72fb5958427ef63181023e8fedce5c6ba642b01a (patch)
treebb32e9d575c76ed35bef94807671e61780416043 /src/buildtool/execution_api/common
parent6e74b1448bf8d94d73ef3134aa9e8bf36e51a2aa (diff)
downloadjustbuild-72fb5958427ef63181023e8fedce5c6ba642b01a.tar.gz
Enable bugprone-empty-catch check.
Diffstat (limited to 'src/buildtool/execution_api/common')
-rw-r--r--src/buildtool/execution_api/common/tree_reader.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/common/tree_reader.hpp b/src/buildtool/execution_api/common/tree_reader.hpp
index 857573df..20e73d7d 100644
--- a/src/buildtool/execution_api/common/tree_reader.hpp
+++ b/src/buildtool/execution_api/common/tree_reader.hpp
@@ -102,10 +102,10 @@ class TreeReader final {
store, parent, digest, include_trees)) {
return result;
}
+ return std::nullopt;
} catch (...) {
- // fallthrough
+ return std::nullopt;
}
- return std::nullopt;
}
private: