diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-03-05 12:17:28 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-03-05 15:51:09 +0100 |
commit | 29d3d2f5065169e4e5c05a41576b5977d3ac7cdd (patch) | |
tree | fcf2902a971a29ebe104b67f80654da58b04999c | |
parent | 051d662d05b67685f9496c3a3190fc7549b42dd7 (diff) | |
download | justbuild-29d3d2f5065169e4e5c05a41576b5977d3ac7cdd.tar.gz |
foreign_file_git_map: add missing return
... after handling absent roots. Otherwise, we violate the condition of
calling the setter precisely once.
-rw-r--r-- | src/other_tools/root_maps/foreign_file_git_map.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/other_tools/root_maps/foreign_file_git_map.cpp b/src/other_tools/root_maps/foreign_file_git_map.cpp index 9bc4127c..c2d06786 100644 --- a/src/other_tools/root_maps/foreign_file_git_map.cpp +++ b/src/other_tools/root_maps/foreign_file_git_map.cpp @@ -207,6 +207,7 @@ void HandleAbsentForeignFile(ForeignFileInfo const& key, auto const& key) { if (key.absent and not fetch_absent) { HandleAbsentForeignFile(key, serve_api_exists, setter, logger); + return; } auto tree_id_file = StorageUtils::GetForeignFileTreeIDFile( key.archive.content, key.name, key.executable); |