projects
/
gatekeeper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a998f5
)
Eliminate version_information sub that was called exactly once
author
Jacob Bachmeyer
<jcb@gnu.org>
Sat, 8 Oct 2022 03:50:36 +0000
(22:50 -0500)
committer
Jacob Bachmeyer
<jcb@gnu.org>
Sat, 8 Oct 2022 03:50:36 +0000
(22:50 -0500)
gatekeeper.pl
patch
|
blob
|
blame
|
history
diff --git
a/gatekeeper.pl
b/gatekeeper.pl
index 69e00812e0d92d5c3e5b80e1873b2dfa5e2cbbc5..6de257f599a4abb7bbde0393a2f4527f04757e30 100755
(executable)
--- a/
gatekeeper.pl
+++ b/
gatekeeper.pl
@@
-262,7
+262,7
@@
our $style;
our $help;
our $version;
-
sub version_information
{
+
if ($version)
{
print "\nThis is $NAME protocol version $VERSION ($DATE)\n";
print $COPYRIGHT_NOTICE;
print "License: $LICENSE\n";
@@
-275,7
+275,6
@@
sub version_information {
exit 0;
}
-version_information() if ($version);
pod2usage(-verbose => 1, -exitval => 0) if ($help);
pod2usage(-message => 'ERROR: Required parameter not given or invalid.',
-verbose => 0, -exitval => 2)