[lintian] 01/02: L::CollScript: Merge a few lines into one
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 835fc84d649994ad0c0bbe0d4600b10fb0955333
Author: Niels Thykier <niels@thykier.net>
Date: Sun Jul 13 14:49:56 2014 +0200
L::CollScript: Merge a few lines into one
Signed-off-by: Niels Thykier <niels@thykier.net>
---
lib/Lintian/CollScript.pm | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/Lintian/CollScript.pm b/lib/Lintian/CollScript.pm
index a867ce5..a6b77f2 100644
--- a/lib/Lintian/CollScript.pm
+++ b/lib/Lintian/CollScript.pm
@@ -94,10 +94,7 @@ sub new {
sub _parse_needs {
my ($self, $needs) = @_;
- my @min = ();
- my %typespec = ();
- my %seen = ();
- my @max = ();
+ my (@min, @max, %typespec, %seen);
foreach my $part (split /\s*,\s*/, $needs//'') {
if ($part =~ m/^ \s* (\S+) \s* \[ \s* ( [^]]+ ) \s* \] \s*$/x) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: