fixed rubocop errors

This commit is contained in:
dinsmol 2021-09-16 14:46:27 +03:00
parent d36ef24170
commit 170652679d
2 changed files with 2 additions and 2 deletions

View file

@ -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],

View file

@ -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