summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-17 16:30:35 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-17 16:30:35 +0000
commite1e9c6f53485d145e0b995687a877e2abf9e916a (patch)
tree7c19fe8c11cb52ddc5d1b9225242640cfd7d651f /common
parent4baba1573a2757cbcedaf629498a4387af6b3cc3 (diff)
downloaddrakwizard-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.pm4
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($$) {