]> Kevux Git Server - fll/commitdiff
Cleanup: Collapse else if condition as both conditions use the same exact call.
authorKevin Day <Kevin@kevux.org>
Sat, 6 Jul 2024 18:19:07 +0000 (13:19 -0500)
committerKevin Day <Kevin@kevux.org>
Sat, 6 Jul 2024 18:19:07 +0000 (13:19 -0500)
level_3/controller/c/thread/private-thread.c

index 7ccd06a8026400e64b87c89b6146193b39cd01d5..e8cb336d3f43955d9f959624a2afd65eefb7f299 100644 (file)
@@ -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);
       }
     }