[debsums] 04/07: Use "!~" instead of "! =~" for better readability

Axel Beckert abe at deuxchevaux.org
Tue Mar 3 11:35:24 UTC 2015


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

abe pushed a commit to branch master
in repository debsums.

commit 74b03f4dd0cd9b0e6c17fcb5b508b90895d4cb0b
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Tue Mar 3 11:11:31 2015 +0100

    Use "!~" instead of "! =~" for better readability
---
 debsums | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debsums b/debsums
index f7c523b..713d827 100755
--- a/debsums
+++ b/debsums
@@ -30,7 +30,7 @@ sub version {
     }
     my $res = `$cmd`;
     chomp($res);
-    if (!($res =~ /^[0-9.~a-z+]+$/)) {
+    if ($res !~ /^[0-9.~a-z+]+$/) {
         $res = "";
     }
     return $res;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git



More information about the Pkg-perl-cvs-commits mailing list