Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Perlito5 - perl5 - pretty-printer - number, apply (fix)
  • Loading branch information
fglock committed Oct 6, 2013
1 parent 413dc0d commit f861f2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion perlito5.pl
Expand Up @@ -12355,7 +12355,7 @@ package Perlito5::AST::Apply;
};
sub Perlito5::AST::Apply::emit_perl5_2 {
my $self = $_[0];
if (ref($code)) {
if (ref($self->{'code'})) {
return ['op', 'infix:<->>', $self->{'code'}->emit_perl5_2(), $self->emit_perl5_2_args()]
};
if ($Perlito5::Perl5::PrettyPrinter::op{$self->{'code'}}) {
Expand Down
2 changes: 1 addition & 1 deletion src5/lib/Perlito5/Perl5/Emitter2.pm
Expand Up @@ -209,7 +209,7 @@ package Perlito5::AST::Apply;
}
sub emit_perl5_2 {
my $self = $_[0];
if (ref $code) {
if (ref $self->{code}) {
return [ op => 'infix:<->>', $self->{code}->emit_perl5_2(), $self->emit_perl5_2_args() ];
}
if ( $Perlito5::Perl5::PrettyPrinter::op{ $self->{code} } ) {
Expand Down

0 comments on commit f861f2b

Please sign in to comment.