Skip to content

Commit b300762

Browse files
committed
return 0 is unnecessary
1 parent fef8c1c commit b300762

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

genblock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ EOT
4545
}
4646

4747
sub is_domain {
48-
my $potential_domain = shift or return 0;
48+
my $potential_domain = shift or return;
4949

5050
if (
5151
$potential_domain =~ /
@@ -125,7 +125,7 @@ sub is_domain {
125125
{
126126
return ${^MATCH};
127127
}
128-
return 0;
128+
return;
129129
}
130130

131131
# Given a hash reference, we "reduce" fully-qualified domains by
@@ -170,7 +170,7 @@ sub reduce_domains {
170170
}
171171

172172
sub unique_domains {
173-
my $hashref = shift or return 0;
173+
my $hashref = shift or return;
174174
my $number_of_domains_added = 0;
175175

176176
PROCESS_LINE: while ( <<>> ) {

0 commit comments

Comments
 (0)