Skip to content

Commit

Permalink
Simplify syntax of new().
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeenan committed Jun 10, 2012
1 parent 6bed7f1 commit dc9baac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Parrot/Pmc2c/Emitter.pm
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ Examples:

sub new {
my ( $class, $filename ) = @_;
my $self = { filename => $filename, };
bless $self, ( ref($class) || $class );
$self;
my $data = { filename => $filename, };
return bless $data, $class;
}

=head2 C<text()>
Expand Down

0 comments on commit dc9baac

Please sign in to comment.