From 7c4cbdc1933283f70c6643ca4ca90fa59b275932 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 10 Oct 2020 09:46:14 +0000 Subject: [PATCH] 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/ --- app/index.js | 10 +++++++--- app/scripts/game-scraper.js | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/index.js b/app/index.js index 15e84dc..3a66d9d 100644 --- a/app/index.js +++ b/app/index.js @@ -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, @@ -192,7 +196,7 @@ module.exports.chekIfGameHasUpdate = async function (info) { return info.version; } - // F95 change URL at every game update, + // F95 change URL at every game update, // so if the URL is the same no update is available return await urlExists(info.f95url, true); }; @@ -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 diff --git a/app/scripts/game-scraper.js b/app/scripts/game-scraper.js index da01a47..fdd3454 100644 --- a/app/scripts/game-scraper.js +++ b/app/scripts/game-scraper.js @@ -17,7 +17,7 @@ const { isStringAValidURL, isF95URL, urlExists } = require("./urls-helper.js"); * Get information from the game's main page. * @param {puppeteer.Browser} browser Browser object used for navigation * @param {String} url URL (String) of the game/mod to extract data from - * @return {Promise} Complete information about the game you are + * @return {Promise} Complete information about the game you are * looking for or null if the URL doesn't exists */ module.exports.getGameInfo = async function (browser, url) {