mirror of https://github.com/Evolix/chexpire.git
Fix Rubocop offenses
This commit is contained in:
parent
b200507826
commit
85c0b34bdd
|
@ -46,8 +46,10 @@ module Whois
|
|||
(value.nil? || field.value == value)
|
||||
}
|
||||
end
|
||||
|
||||
def get_field!(name, after: -1, value: nil)
|
||||
get_field(name, after: after, value: value) || fail(FieldNotFoundError, "Field `#{name}` not found, after index #{after}")
|
||||
get_field(name, after: after, value: value) \
|
||||
|| fail(FieldNotFoundError, "Field `#{name}` not found, after index #{after}")
|
||||
end
|
||||
|
||||
def get_value!(name, after: -1)
|
||||
|
|
|
@ -31,7 +31,6 @@ module Whois
|
|||
private
|
||||
|
||||
def extract_values
|
||||
|
||||
domain_index = get_field!("Domain Name", value: domain.downcase).index
|
||||
|
||||
created_date = get_value!("Creation Date", after: domain_index)
|
||||
|
|
Loading…
Reference in New Issue