mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +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
|
||||
|
||||
def update
|
||||
def update # rubocop:disable Metrics/MethodLength
|
||||
affected, errored = if hostname.present?
|
||||
current_user.registrar.replace_nameservers(hostname,
|
||||
hostname_params[:data][:attributes],
|
||||
|
|
|
@ -187,7 +187,7 @@ class Registrar < ApplicationRecord
|
|||
domain_scope.each do |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
|
||||
next
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue