From 5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 3 Sep 2008 13:32:05 +0000 Subject: simplify (as suggested by perl_checker) --- urpm/media.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'urpm/media.pm') diff --git a/urpm/media.pm b/urpm/media.pm index ca7e8c4b..3dd9747b 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -310,9 +310,8 @@ sub _valid_synthesis_dir { sub _url_with_synthesis_rel { my ($medium) = @_; - $medium->{with_synthesis} - ? $medium->{with_synthesis} - : "$medium->{media_info_dir}/synthesis.hdlist.cz"; + $medium->{with_synthesis} || + "$medium->{media_info_dir}/synthesis.hdlist.cz"; } sub _url_with_synthesis { -- cgit v1.2.1