Skip to content

Commit

Permalink
remove function from hosting-node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fershad committed Mar 17, 2024
1 parent 2a8f601 commit 41ee904
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/hosting-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,8 @@ async function checkDomainsAgainstAPI(domains, userAgentIdentifier) {
}
}

/**
* Take the result of a pageXray and check the domains in it against the database.
* @param {object} pageXray - The result of a pageXray.
* @param {object} db - A database object to use for lookups.
* @returns {array} - An array indicating whether the domain is hosted by a green web host.
*/
async function checkPage(pageXray, db) {
const domains = Object.keys(pageXray.domains);
return check(domains, db);
}

export default {
check,
checkPage,
greendomains: hostingJSON.greenDomainsFromResults,
loadJSON: hostingJSON.loadJSON,
};

0 comments on commit 41ee904

Please sign in to comment.