From a2d6caf9a074b01c97a3c38b429eaa79b38d8b5c Mon Sep 17 00:00:00 2001 From: unlisted Date: Mon, 7 May 2012 14:05:37 -0400 Subject: [PATCH] remove redundant check --- lib/DDG/Goodie/Frequency.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DDG/Goodie/Frequency.pm b/lib/DDG/Goodie/Frequency.pm index 6c53e71669c..78f43016a81 100644 --- a/lib/DDG/Goodie/Frequency.pm +++ b/lib/DDG/Goodie/Frequency.pm @@ -17,7 +17,7 @@ handle remainder => sub { { if ($_ =~ /[a-z]/i) { - ++$freq{$_} if $_; + ++$freq{$_}; ++$count; }; };