sub make_immutable {
my ( $self, @args ) = @_;
+ return if not $self->is_mutable;
+
my ($file, $line) = (caller)[1..2];
- if ( $self->is_mutable ) {
- $self->_initialize_immutable(
- file => $file,
- line => $line,
- $self->_immutable_options(@args),
- );
- $self->_rebless_as_immutable(@args);
- return $self;
- }
- else {
- return;
- }
+
+ $self->_initialize_immutable(
+ file => $file,
+ line => $line,
+ $self->_immutable_options(@args),
+ );
+ $self->_rebless_as_immutable(@args);
+ return $self;
}
sub make_mutable {