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 63f679b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ group :test do
gem 'minitest-stub_any_instance'
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 unless 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

def handle_saving_result(contact, result)
Expand Down

0 comments on commit 63f679b

Please sign in to comment.