diff options
author | Thierry Vignaud <tv@mageia.org> | 2011-05-18 23:45:51 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2011-05-18 23:45:51 +0000 |
commit | 3866303fb951a23168aaf4b52ad5c32e16cda94d (patch) | |
tree | befba18e69e306c98b9af2964ff1caf55e4c3bff | |
parent | 7d833cba42b3c5f216ecb3e939cede8bd6b9df5d (diff) | |
download | drakx-3866303fb951a23168aaf4b52ad5c32e16cda94d.tar drakx-3866303fb951a23168aaf4b52ad5c32e16cda94d.tar.gz drakx-3866303fb951a23168aaf4b52ad5c32e16cda94d.tar.bz2 drakx-3866303fb951a23168aaf4b52ad5c32e16cda94d.tar.xz drakx-3866303fb951a23168aaf4b52ad5c32e16cda94d.zip |
(write_config) more compact
-rw-r--r-- | perl-install/harddrake/sound.pm | 4 |
1 files changed, 1 insertions, 3 deletions
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); |