mirror of
https://github.com/internetee/registry.git
synced 2025-08-16 14:33:55 +02:00
fixed rubocop errors
This commit is contained in:
parent
d36ef24170
commit
170652679d
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ module Repp
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update # rubocop:disable Metrics/MethodLength
|
||||||
affected, errored = if hostname.present?
|
affected, errored = if hostname.present?
|
||||||
current_user.registrar.replace_nameservers(hostname,
|
current_user.registrar.replace_nameservers(hostname,
|
||||||
hostname_params[:data][:attributes],
|
hostname_params[:data][:attributes],
|
||||||
|
|
|
@ -187,7 +187,7 @@ class Registrar < ApplicationRecord
|
||||||
domain_scope.each do |domain_name|
|
domain_scope.each do |domain_name|
|
||||||
domain = self.domains.find_by('name = ? OR name_puny = ?', domain_name, domain_name)
|
domain = self.domains.find_by('name = ? OR name_puny = ?', domain_name, domain_name)
|
||||||
|
|
||||||
if !domain.present? || domain_not_updatable?(hostname: new_attributes[:hostname], domain: domain)
|
if domain.blank? || domain_not_updatable?(hostname: new_attributes[:hostname], domain: domain)
|
||||||
failed_list << domain_name
|
failed_list << domain_name
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue