[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: c/debconf: Merge var declaration and remove unused var



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit ba98f4b781439dddf5555912ae23003e32781528
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Mar 8 10:05:04 2014 +0100

    c/debconf: Merge var declaration and remove unused var
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/debconf.pm | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/checks/debconf.pm b/checks/debconf.pm
index de1df05..db7d28c 100644
--- a/checks/debconf.pm
+++ b/checks/debconf.pm
@@ -62,10 +62,7 @@ my $ANY_DEBCONF = Lintian::Relation->new(
 
 sub run {
     my ($pkg, $type, $info) = @_;
-    my $seenconfig='';
-    my $seentemplates='';
-    my $usespreinst='';
-    my $usesmultiselect='';
+    my ($seenconfig, $seentemplates, $usespreinst);
 
     if ($type eq 'source') {
         my @binaries = $info->binaries;
@@ -218,7 +215,6 @@ sub run {
             $isselect = 1;
         } elsif ($template->{type} eq 'multiselect') {
             $isselect = 1;
-            $usesmultiselect = 1;
         } elsif ($template->{type} eq 'boolean') {
             tag 'boolean-template-has-bogus-default',
               "$template->{template} $template->{default}"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: