From 0a035d36fb6a225640d31162e4b348dacfa93f96 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 16 Apr 2016 17:21:28 +0200 Subject: Remove useless conditions from show_usage/version invocations --- sbofind | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbofind') diff --git a/sbofind b/sbofind index 8fd08f9..27e0066 100755 --- a/sbofind +++ b/sbofind @@ -52,10 +52,10 @@ GetOptions( 'queue|q' => \$show_queue, ); -show_usage() and exit 0 if $help; -show_version() and exit 0 if $vers; +if ($help) { show_usage(); exit 0 } +if ($vers) { show_version(); exit 0 } -show_usage() and exit 1 unless exists $ARGV[0]; +if (!@ARGV) { show_usage(); exit 1 } my $search = $ARGV[0]; # if we can't find SLACKBUILDS.TXT in $config{HOME}, prompt to fetch the tree -- cgit v1.2.3