From 9be7ce54c20c3395dae455d7ca96c2f565eed585 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 21 Mar 2023 15:29:09 +0100 Subject: [PATCH] sculpt: avoid superfluous entries The missing else statements resulted in the addition of a superfluous node when installing an , causing warning messages by the depot-download subsytem. --- repos/gems/src/app/sculpt_manager/model/download_queue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/gems/src/app/sculpt_manager/model/download_queue.h b/repos/gems/src/app/sculpt_manager/model/download_queue.h index 0d317b8928..faa071aa7e 100644 --- a/repos/gems/src/app/sculpt_manager/model/download_queue.h +++ b/repos/gems/src/app/sculpt_manager/model/download_queue.h @@ -42,9 +42,9 @@ struct Sculpt::Download_queue : Noncopyable if (Depot::Archive::index(path)) gen_install_node("index", path); - if (Depot::Archive::image_index(path)) + else if (Depot::Archive::image_index(path)) gen_install_node("image_index", path); - if (Depot::Archive::image(path)) + else if (Depot::Archive::image(path)) gen_install_node("image", path); else xml.node("archive", [&] () {