From: Tom Hughes Date: Tue, 15 Aug 2023 17:22:45 +0000 (+0100) Subject: Fix new rubocop warnings X-Git-Tag: live~1142 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/65d092a5791d01561cc7b6826377e950a25ad45c Fix new rubocop warnings --- diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index abd998030..fc9a6afc0 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -357,7 +357,7 @@ class UsersController < ApplicationController # get list of MX servers for a domains def domain_mx_servers(domain) Resolv::DNS.open do |dns| - dns.getresources(domain, Resolv::DNS::Resource::IN::MX).collect(&:exchange).collect(&:to_s) + dns.getresources(domain, Resolv::DNS::Resource::IN::MX).collect { |mx| mx.exchange.to_s } end end end