lib/tasks/run.rake in yast-rake-0.2.50 vs lib/tasks/run.rake in yast-rake-0.2.51
- old
+ new
@@ -33,10 +33,10 @@
if client
client = Dir["**/src/clients/#{client}.rb"].first
else
clients = Dir["**/src/clients/*.rb"]
client = clients.reduce do |min, n|
- next n if min.nil?
+ min ||= n
# use client with shortest name by default
(min.size > n.size) ? n : min
end
end