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

[lintian] 03/04: coll/hardening-info: Remove redundant index-look up



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

nthykier pushed a commit to branch master
in repository lintian.

commit 001da6c719473513ec298a1d6235d624d9700bef
Author: Niels Thykier <niels@thykier.net>
Date:   Mon Sep 29 21:30:08 2014 +0200

    coll/hardening-info: Remove redundant index-look up
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 collection/hardening-info | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/collection/hardening-info b/collection/hardening-info
index 7b78e31..fc02d3c 100755
--- a/collection/hardening-info
+++ b/collection/hardening-info
@@ -68,7 +68,7 @@ sub collect {
     };
 
     foreach my $bin ($info->sorted_index) {
-        next unless $info->index($bin)->is_file;
+        next unless $bin->is_file;
         # Skip kernel modules and debug files
         next if $bin =~ m/\.ko$/o or $bin =~ m{\A usr/lib/debug/ }xsm;
         my $finfo = $info->file_info($bin);

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


Reply to: