lib/zold/commands/fetch.rb in zold-0.14.53 vs lib/zold/commands/fetch.rb in zold-0.15.0

- old
+ new

@@ -67,11 +67,10 @@ 'The name of the network we work in', default: 'test' o.bool '--help', 'Print instructions' end mine = Args.new(opts, @log).take || return - mine = @wallets.all if mine.empty? - mine.map { |i| Id.new(i) }.each do |id| + (mine.empty? ? @wallets.all : mine.map { |i| Id.new(i) }).each do |id| fetch(id, Copies.new(File.join(@copies, id)), opts) end end private