diff options
author | Guillem Jover <guillem@debian.org> | 2012-12-30 02:49:36 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-04-29 18:45:54 +0200 |
commit | f215ebacf1183e33da3287533c8eec60cc5af418 (patch) | |
tree | 458435c1647bf7845cec876d15d8c50d6a4d473e /scripts/Dpkg/BuildEnv.pm | |
parent | 193cfded7822eab6d63e200037ac86df6ba98521 (diff) | |
download | dpkg-f215ebacf1183e33da3287533c8eec60cc5af418.tar.gz |
scripts: Do not use "nested" functions as they are global
Even if these functions are defined inside another function, they are
still global, make them proper global functions by moving the definition
outside of the outter function and mark them explicitly as being private
by using an underscore prefix. There's no point in making these
anonymous nested functions, as they do not need to access any variable
from the outter functions.
Fixes Subroutines::ProhibitNestedSubs.
Warned-by: perlcritic
Diffstat (limited to 'scripts/Dpkg/BuildEnv.pm')
0 files changed, 0 insertions, 0 deletions