lib/imap/backup/cli/helpers.rb in imap-backup-9.2.0 vs lib/imap/backup/cli/helpers.rb in imap-backup-9.3.0

- old
+ new

@@ -83,9 +83,11 @@ Account::Connection.new(account) end def each_connection(config, names) + return enum_for(:each_connection, config, names) if !block_given? + config.accounts.each do |account| next if names.any? && !names.include?(account.username) yield account.connection end