Format code with prettier
This commit fixes the style issues introduced in 4e2c158
according to the output
from prettier.
Details: https://deepsource.io/gh/MillenniumEarl/F95API/transform/e5d67d63-332e-42c6-aa18-13c9ba54b7fd/
pull/12/head
parent
4e2c158a85
commit
7c4cbdc193
|
@ -7,7 +7,11 @@ const fs = require("fs");
|
||||||
const shared = require("./scripts/shared.js");
|
const shared = require("./scripts/shared.js");
|
||||||
const constURLs = require("./scripts/constants/urls.js");
|
const constURLs = require("./scripts/constants/urls.js");
|
||||||
const selectors = require("./scripts/constants/css-selectors.js");
|
const selectors = require("./scripts/constants/css-selectors.js");
|
||||||
const { isStringAValidURL, urlExists, isF95URL } = require("./scripts/urls-helper.js");
|
const {
|
||||||
|
isStringAValidURL,
|
||||||
|
urlExists,
|
||||||
|
isF95URL,
|
||||||
|
} = require("./scripts/urls-helper.js");
|
||||||
const gameScraper = require("./scripts/game-scraper.js");
|
const gameScraper = require("./scripts/game-scraper.js");
|
||||||
const {
|
const {
|
||||||
prepareBrowser,
|
prepareBrowser,
|
||||||
|
@ -252,7 +256,7 @@ module.exports.getGameDataFromURL = async function (url) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check URL
|
// Check URL
|
||||||
if(!urlExists(url)) return null;
|
if (!urlExists(url)) return null;
|
||||||
if (!isF95URL(url)) throw url + " is not a valid F95Zone URL";
|
if (!isF95URL(url)) throw url + " is not a valid F95Zone URL";
|
||||||
|
|
||||||
// Gets the search results of the game being searched for
|
// Gets the search results of the game being searched for
|
||||||
|
|
Loading…
Reference in New Issue