From: Alexander Hartmaier Date: Mon, 4 Oct 2010 15:43:13 +0000 (+0200) Subject: simplification X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=edca0430a3c442627c6c771a774a0e3fc34dee99;p=chaz%2Fp5-DBIx-Class-ResultSet-RecursiveUpdate simplification --- diff --git a/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm b/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm index dcf3707..2f50ee1 100644 --- a/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm +++ b/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm @@ -307,7 +307,7 @@ sub _update_relation { ); } } - elsif ( !ref $updates ) { + else { $sub_object = $related_resultset->find($updates) unless ( !$updates