Skip to content

Commit

Permalink
refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Aug 29, 2023
1 parent 7bedf36 commit c70a1e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,9 @@ group :test do
gem 'database_cleaner'
gem 'minitest', '~> 5.17'
gem 'minitest-stub_any_instance'
gem 'selenium-webdriver'
gem 'simplecov', '0.17.1', require: false # CC last supported v0.17
gem 'spy'
# gem 'webdrivers'
gem 'selenium-webdriver'
gem 'webmock'
end

Expand Down
8 changes: 4 additions & 4 deletions app/interactions/actions/email_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ def handle_mx_validation(result)
output_a_and_aaaa_validation_results(email: email, result: result_validation, type: 'AAAA')
end

if result_validation.present?
result.success = true
result.errors.merge!({ mx: 'target host(s) not found, but was able to find A/AAAA records for domain'})
end
return if result_validation.blank?

result.success = true
result.errors.merge!({ mx: 'target host(s) not found, but was able to find A/AAAA records for domain' })
end

def handle_saving_result(contact, result)
Expand Down

0 comments on commit c70a1e8

Please sign in to comment.