From da59df3a3e8f9d3e5eb6e0cd48f51f6cf1db8549 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 25 Feb 2013 17:56:45 +0000 Subject: (libscan) simplify --- Makefile.PL | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index 5ed20f9c..b18cf035 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -29,8 +29,7 @@ package MY; # Don't install gurpmi.pm if we don't install gui sub libscan { my ($self, $path) = @_; - if (!$with_gui && $path =~ /gurpmi/) { return '' } - return $path; + return !$with_gui && $path =~ /gurpmi/ ? '' : $path; } # Make proper sbin/man5/man8 dirs in blib -- cgit v1.2.1