From cf9f3d4a63e64938c3b0f4fb17909a762204c9b4 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 6 Jul 2024 13:19:07 -0500 Subject: [PATCH] Cleanup: Collapse else if condition as both conditions use the same exact call. --- level_3/controller/c/thread/private-thread.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/level_3/controller/c/thread/private-thread.c b/level_3/controller/c/thread/private-thread.c index 7ccd06a..e8cb336 100644 --- a/level_3/controller/c/thread/private-thread.c +++ b/level_3/controller/c/thread/private-thread.c @@ -306,10 +306,7 @@ extern "C" { if (setting->mode == controller_setting_mode_service_e) { controller_thread_join(&thread.id_signal); } - else if (setting->mode == controller_setting_mode_helper_e) { - status = controller_rule_wait_all(global, F_true, F_false, 0); - } - else if (setting->mode == controller_setting_mode_program_e) { + else if (setting->mode == controller_setting_mode_helper_e || setting->mode == controller_setting_mode_program_e) { status = controller_rule_wait_all(global, F_true, F_false, 0); } } -- 1.8.3.1