Skip to content

Commit

Permalink
Clear useless fetch argument (timeout not supported there)
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Aug 12, 2023
1 parent 83992a1 commit e42b7d0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/sales_tax.js
Expand Up @@ -22,9 +22,6 @@ var regex_ca_vat = /^[0-9]{9}$/;
var validate_gb_vat_url = (
"https://api.service.hmrc.gov.uk/organisations/vat/check-vat-number/lookup"
);
var validate_gb_vat_options = {
timeout : 20000
};

var tax_rates = require("../res/sales_tax_rates.json");
var region_countries = require("../res/region_countries.json");
Expand Down Expand Up @@ -240,8 +237,7 @@ SalesTax.prototype.validateTaxNumber = function(
if (isValid === true && self.enabledTaxNumberFraudCheck === true) {
// Query UK HMRC validation API
return fetch(
validate_gb_vat_url + "/" + splitMatch[1],
validate_gb_vat_options
validate_gb_vat_url + "/" + splitMatch[1]
)
.then(function(response) {
return Promise.resolve(
Expand Down

0 comments on commit e42b7d0

Please sign in to comment.