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

- old
+ new

@@ -56,11 +56,10 @@ 'Ignore this node and don\'t push to it', default: [] 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| push(id, opts) end end private