mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Fix some CC issues
This commit is contained in:
parent
6d96a09b5c
commit
951a3f247b
2 changed files with 6 additions and 6 deletions
|
@ -50,9 +50,9 @@ module Repp
|
|||
|
||||
def transferable_domain(domain_name, transfer_code)
|
||||
domain = Domain.find_by(name: domain_name)
|
||||
valid_transfer_code = domain.transfer_code == transfer_code
|
||||
# rubocop:disable Style/AndOr
|
||||
add_error("#{domain_name} does not exist") and return unless domain
|
||||
valid_transfer_code = domain.transfer_code.eql?(transfer_code)
|
||||
add_error("#{domain_name} transfer code is wrong") and return unless valid_transfer_code
|
||||
# rubocop:enable Style/AndOr
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue