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

[lintian] 01/01: L::Path: Remove unused argument



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

nthykier pushed a commit to branch master
in repository lintian.

commit 57e70233c5a11381e57cd8b4015c05facfaf0144
Author: Niels Thykier <niels@thykier.net>
Date:   Fri Jan 22 20:14:22 2016 +0000

    L::Path: Remove unused argument
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 lib/Lintian/Path.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/Lintian/Path.pm b/lib/Lintian/Path.pm
index 373f6f8..17cdf08 100644
--- a/lib/Lintian/Path.pm
+++ b/lib/Lintian/Path.pm
@@ -508,7 +508,7 @@ defined entry, for which L</is_dir> returns a truth value.
 sub fs_path {
     my ($self) = @_;
     my $path = $self->_collect_path();
-    $self->_check_access($path);
+    $self->_check_access();
     return $path if $self->resolve_path->is_dir;
     $self->_check_open($path);
     return $path;
@@ -551,7 +551,7 @@ sub _fs_info {
 }
 
 sub _check_access {
-    my ($self, $path) = @_;
+    my ($self) = @_;
     my $path_info = $self->{'_path_info'};
     return 1 if ($path_info & FS_PATH_IS_OK) == FS_PATH_IS_OK;
     return 0 if $path_info & ACCESS_INFO;
@@ -570,7 +570,7 @@ sub _check_access {
 
 sub _check_open {
     my ($self, $path) = @_;
-    $self->_check_access($path);
+    $self->_check_access();
     # Symlinks can point to a "non-file" object inside the
     # package root
     if ($self->is_file or ($self->is_symlink and -f $path)) {

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


Reply to: