diff options
| author | Andrew Dunstan | 2018-05-27 13:08:42 +0000 |
|---|---|---|
| committer | Andrew Dunstan | 2018-05-27 13:08:42 +0000 |
| commit | 3a7cc727c7c502353dbb730a0db793abec4de44b (patch) | |
| tree | c140b2974559d0a13d98c132ae52f7d0992aff95 /src/tools/copyright.pl | |
| parent | 8a56ff484808e9c05df9656cf4244229e8c7960d (diff) | |
Don't fall off the end of perl functions
This complies with the perlcritic policy
Subroutines::RequireFinalReturn, which is a severity 4 policy. Since we
only currently check at severity level 5, the policy is raised to that
level until we move to level 4 or lower, so that any new infringements
will be caught.
A small cosmetic piece of tidying of the pgperlcritic script is
included.
Mike Blackwell
Discussion: https://postgr.es/m/CAESHdJpfFm_9wQnQ3koY3c91FoRQsO-fh02za9R3OEMndOn84A@mail.gmail.com
Diffstat (limited to 'src/tools/copyright.pl')
| -rwxr-xr-x | src/tools/copyright.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/copyright.pl b/src/tools/copyright.pl index 41cb93d658a..08b9e5b42e3 100755 --- a/src/tools/copyright.pl +++ b/src/tools/copyright.pl @@ -62,6 +62,7 @@ sub wanted $line =~ s/$cc (\d{4}), $pgdg/$ccliteral $1-$year, $pgdg/i; } untie @lines; + return; } print "Manually update:\n"; |
