From: Dagfinn Ilmari Mannsåker Date: Mon, 7 Mar 2016 16:00:51 +0000 (+0000) Subject: Convert complicated unless condition to simpler if X-Git-Tag: 0.07046~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=024c32c4b2451aeb3fbce45aeab6a3ed0ea2c1ed;p=dbsrgits%2FDBIx-Class-Schema-Loader.git Convert complicated unless condition to simpler if Also linewrap --- diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index 07be607..7edc3b0 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -1985,7 +1985,8 @@ sub _dump_to_dir { my @attr = qw/resultset_namespace default_resultset_class/; - unshift @attr, 'result_namespace' unless (not $self->result_namespace) || $self->result_namespace eq 'Result'; + unshift @attr, 'result_namespace' + if $self->result_namespace && $self->result_namespace ne 'Result'; for my $attr (@attr) { if ($self->$attr) {