lib/rake/funnel/support/internal/finder.rb in rake-funnel-0.18.0 vs lib/rake/funnel/support/internal/finder.rb in rake-funnel-0.19.0

- old
+ new

@@ -9,11 +9,11 @@ @task = task @message = message end def each - block_given? or return enum_for(__method__) + block_given? || (return enum_for(__method__)) all_or_default.each { |x| yield x } end def single_or_default first_sln @@ -38,9 +38,10 @@ candidates end private + def first_sln return candidates.first if candidates.one? nil end