Format code with prettier
This commit fixes the style issues introduced in 90d99e4
according to the output
from prettier.
Details: https://deepsource.io/gh/MillenniumEarl/F95API/transform/1d01a078-b5e8-43f1-96bb-a18eca9bbe0a/
pull/13/head
parent
90d99e4315
commit
fa470c4ebf
|
@ -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