diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-26 14:20:16 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-26 16:54:16 +0200 |
commit | 5baab75fd2ae62b6f6407991922fe234f9e73c88 (patch) | |
tree | bc2cb07d625dc6866b0be9a1e347e51467df1703 /src/other_tools/root_maps/root_utils.cpp | |
parent | 845744929e40dbdc81ed9c7df0152d58bbb28be6 (diff) | |
download | justbuild-5baab75fd2ae62b6f6407991922fe234f9e73c88.tar.gz |
Fix redundant std::optional conversions
...proposed by clang-tidy.
Enable bugprone-optional-value-conversion check.
Diffstat (limited to 'src/other_tools/root_maps/root_utils.cpp')
-rw-r--r-- | src/other_tools/root_maps/root_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/other_tools/root_maps/root_utils.cpp b/src/other_tools/root_maps/root_utils.cpp index 4173a00d..9dd7badf 100644 --- a/src/other_tools/root_maps/root_utils.cpp +++ b/src/other_tools/root_maps/root_utils.cpp @@ -28,7 +28,7 @@ auto CheckServeHasAbsentRoot(ServeApi const& serve, AsyncMapConsumerLoggerPtr const& logger) -> std::optional<bool> { if (auto has_tree = serve.CheckRootTree(tree_id)) { - return *has_tree; + return has_tree; } (*logger)(fmt::format("Checking that the serve endpoint knows tree " "{} failed.", |