diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-17 16:30:35 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-17 16:30:35 +0000 |
commit | e1e9c6f53485d145e0b995687a877e2abf9e916a (patch) | |
tree | 7c19fe8c11cb52ddc5d1b9225242640cfd7d651f /common | |
parent | 4baba1573a2757cbcedaf629498a4387af6b3cc3 (diff) | |
download | drakwizard-e1e9c6f53485d145e0b995687a877e2abf9e916a.tar drakwizard-e1e9c6f53485d145e0b995687a877e2abf9e916a.tar.gz drakwizard-e1e9c6f53485d145e0b995687a877e2abf9e916a.tar.bz2 drakwizard-e1e9c6f53485d145e0b995687a877e2abf9e916a.tar.xz drakwizard-e1e9c6f53485d145e0b995687a877e2abf9e916a.zip |
(check_started) simplify
Diffstat (limited to 'common')
-rw-r--r-- | common/Wizcommon.pm | 4 |
1 files changed, 1 insertions, 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($$) { |