Skip to content

Commit

Permalink
use each consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 17, 2014
1 parent 9e9ac56 commit a0010c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojolicious/Command/get.pm
Expand Up @@ -102,10 +102,10 @@ sub _select {
($results = $results->slice($command)) and next if $command =~ /^\d+$/;

# Text
return _say($results->text) if $command eq 'text';
return _say($results->text->each) if $command eq 'text';

# All text
return _say($results->all_text) if $command eq 'all';
return _say($results->all_text->each) if $command eq 'all';

# Attribute
return _say($results->attr($args[0] // '')->each) if $command eq 'attr';
Expand All @@ -114,7 +114,7 @@ sub _select {
die qq{Unknown command "$command".\n};
}

_say($results);
_say($results->each);
}

1;
Expand Down

0 comments on commit a0010c7

Please sign in to comment.