From 28275fce0361a2b721951131ef4a07f0ac0d22af Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 18 Oct 2012 20:50:48 +0000 Subject: simplify --- pxe_wizard/Pxe.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pxe_wizard') diff --git a/pxe_wizard/Pxe.pm b/pxe_wizard/Pxe.pm index 04c85572..4012d698 100644 --- a/pxe_wizard/Pxe.pm +++ b/pxe_wizard/Pxe.pm @@ -113,7 +113,7 @@ $o->{pages} = { $o->{var}{wiz_level} ||= 1; }, post => sub { - if (! -f "$X86/drakwizard_pxe") { return 'pxeserver' } + return 'pxeserver' if ! -f "$X86/drakwizard_pxe"; if ($o->{var}{wiz_level} == 1) { return 'pxeserver'; } elsif ($o->{var}{wiz_level} == 4) { -- cgit v1.2.1