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

[lintian] 01/01: c/files: Add missing return to a sub



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

nthykier pushed a commit to branch master
in repository lintian.

commit 0789b1bb87ca827ad3b51cfc8ad89e7654548c51
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Apr 30 10:50:08 2017 +0000

    c/files: Add missing return to a sub
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/files.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/checks/files.pm b/checks/files.pm
index 3d4047c..5a696c5 100644
--- a/checks/files.pm
+++ b/checks/files.pm
@@ -179,10 +179,11 @@ sub _tag_build_tree_path {
     my ($path, $msg) = @_;
     foreach my $buildpath ($BUILD_PATH_REGEX->all) {
         my $regex = $BUILD_PATH_REGEX->value($buildpath);
-        if($path =~ m{$regex}xms) {
+        if ($path =~ m{$regex}xms) {
             tag 'dir-or-file-in-build-tree', $msg;
         }
     }
+    return;
 }
 
 sub _is_tmp_path {

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


Reply to: