[lintian] 02/03: L::Check: Inline a qr//-result that is only used once
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 5e9ac143cf4ec94dc5e46c27a0a0c52aac8f23f2
Author: Niels Thykier <niels@thykier.net>
Date: Thu Oct 2 22:16:49 2014 +0200
L::Check: Inline a qr//-result that is only used once
Signed-off-by: Niels Thykier <niels@thykier.net>
---
lib/Lintian/Check.pm | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/Lintian/Check.pm b/lib/Lintian/Check.pm
index 8ed4543..bc8a2ed 100644
--- a/lib/Lintian/Check.pm
+++ b/lib/Lintian/Check.pm
@@ -283,8 +283,7 @@ sub check_spelling {
# Special case for correcting multi-word strings.
for my $oregex ($corrections_multiword->all) {
- my $regex = qr($oregex);
- if ($text =~ m,\b($regex)\b,) {
+ if ($text =~ m,\b($oregex)\b,) {
my $word = $1;
my $correction = $corrections_multiword->value($oregex);
if ($word =~ /^[A-Z]+$/) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: