From 29d3d2f5065169e4e5c05a41576b5977d3ac7cdd Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 5 Mar 2024 12:17:28 +0100 Subject: foreign_file_git_map: add missing return ... after handling absent roots. Otherwise, we violate the condition of calling the setter precisely once. --- src/other_tools/root_maps/foreign_file_git_map.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3