From: Kevin Day Date: Sat, 6 Jul 2024 18:19:07 +0000 (-0500) Subject: Cleanup: Collapse else if condition as both conditions use the same exact call. X-Git-Tag: 0.6.11~33 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=cf9f3d4a63e64938c3b0f4fb17909a762204c9b4;p=fll Cleanup: Collapse else if condition as both conditions use the same exact call. --- 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); } }