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
deepsource-autofix[bot] 2020-10-10 10:06:19 +00:00 committed by GitHub
parent 90d99e4315
commit fa470c4ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -7,7 +7,11 @@ const fs = require("fs");
const shared = require("./scripts/shared.js");
const constURLs = require("./scripts/constants/urls.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 {
prepareBrowser,
@ -252,7 +256,7 @@ module.exports.getGameDataFromURL = async function (url) {
}
// Check URL
if(!urlExists(url)) return null;
if (!urlExists(url)) return null;
if (!isF95URL(url)) throw url + " is not a valid F95Zone URL";
// Gets the search results of the game being searched for