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 --- sboconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sboconfig') diff --git a/sboconfig b/sboconfig index e9cd795..3088592 100755 --- a/sboconfig +++ b/sboconfig @@ -59,8 +59,8 @@ GetOptions(\%options, 'help|h', 'version|v', 'list|l', 'noclean|c=s', 'distclean|d=s', 'jobs|j=s', 'pkg-dir|p=s', 'sbo-home|s=s', 'local-overrides|o=s', 'slackware-version|V=s', 'repo|r=s'); -show_usage() and exit 0 if exists $options{help}; -show_version() and exit 0 if exists $options{version}; +if ($options{help}) { show_usage(); exit 0 } +if ($options{version}) { show_version(); exit 0 } my %valid_confs = ( noclean => 'NOCLEAN', -- cgit v1.2.3