Skip to content

Commit

Permalink
Fix whitespace for MOP file; better handle edge case where is option …
Browse files Browse the repository at this point in the history
…is unexpected
  • Loading branch information
tobyink committed Aug 1, 2022
1 parent fafbf11 commit ddb92eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mite/Attribute.pm
Expand Up @@ -899,7 +899,7 @@ sub _compile_mop {

{
my %translate = ( ro => 'ro', rw => 'rw', rwp => 'ro', bare => 'bare', lazy => 'ro' );
$opts_string .= $opts_indent . sprintf( 'is => "%s", ', $translate{$self->is} );
$opts_string .= $opts_indent . sprintf( 'is => "%s",', $translate{$self->is} || 'bare' );
}

$opts_string .= $opts_indent . sprintf( 'weak_ref => %s,', $self->weak_ref ? 'true' : 'false' );
Expand Down

0 comments on commit ddb92eb

Please sign in to comment.