From e1e9c6f53485d145e0b995687a877e2abf9e916a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 17 Oct 2012 16:30:35 +0000 Subject: (check_started) simplify --- common/Wizcommon.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/Wizcommon.pm b/common/Wizcommon.pm index 106a9a44..5caa0766 100644 --- a/common/Wizcommon.pm +++ b/common/Wizcommon.pm @@ -45,9 +45,7 @@ sub new { sub check_started { my ($service) = @_; my ($isrunning) = services::is_service_running($service); - if (!$isrunning) { - return 'error_end'; - } + return 'error_end' if !$isrunning; } sub check_starts_on_boot($$) { -- cgit v1.2.1