Skip to content

Commit

Permalink
fixed typo in Mojo::Parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 7, 2014
1 parent 8764950 commit 54b7670
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mojo/Parameters.pm
Expand Up @@ -157,7 +157,8 @@ sub to_string {
}

# Build pairs;
return '' unless @{my $params = $self->params};
my $params = $self->params;
return '' unless @$params;
my @pairs;
for (my $i = 0; $i < @$params; $i += 2) {
my ($name, $value) = @{$params}[$i, $i + 1];
Expand Down

0 comments on commit 54b7670

Please sign in to comment.