]> git.openstreetmap.org Git - rails.git/commitdiff
Fix new rubocop warnings
authorTom Hughes <tom@compton.nu>
Tue, 15 Aug 2023 17:22:45 +0000 (18:22 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 15 Aug 2023 17:22:45 +0000 (18:22 +0100)
app/controllers/users_controller.rb

index abd998030eda898c28d439f82d6156c219c701c9..fc9a6afc09a17926d49db044df1333008277b3c4 100644 (file)
@@ -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