From 3866303fb951a23168aaf4b52ad5c32e16cda94d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 18 May 2011 23:45:51 +0000 Subject: (write_config) more compact --- perl-install/harddrake/sound.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'perl-install/harddrake') diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm index c5e4959e1..5bf5c55ab 100644 --- a/perl-install/harddrake/sound.pm +++ b/perl-install/harddrake/sound.pm @@ -310,9 +310,7 @@ sub switch { my $old_value = $is_pulseaudio_enabled; my $write_config = sub { - if (!$is_pulseaudio_installed) { - return; - } + return if !$is_pulseaudio_installed; set_pulseaudio($is_pulseaudio_enabled); set_pulseaudio_glitchfree($is_pulseaudio_glitchfree_enabled); set_PA_autospan($is_pulseaudio_enabled); -- cgit v1.2.1