Format code with prettier
This commit fixes the style issues introduced in 0f5c827
according to the output
from prettier.
Details: https://deepsource.io/gh/MillenniumEarl/F95API/transform/4813d371-dce8-4240-8e92-aaea9566b0c8/
pull/29/head
parent
0f5c82751e
commit
4f4a51854c
|
@ -7,16 +7,10 @@ const puppeteer = require("puppeteer"); // skipcq: JS-0128
|
||||||
// Modules from file
|
// Modules from file
|
||||||
const shared = require("./shared.js");
|
const shared = require("./shared.js");
|
||||||
const selectors = require("./constants/css-selectors.js");
|
const selectors = require("./constants/css-selectors.js");
|
||||||
const {
|
const { preparePage } = require("./puppeteer-helper.js");
|
||||||
preparePage
|
|
||||||
} = require("./puppeteer-helper.js");
|
|
||||||
const GameDownload = require("./classes/game-download.js");
|
const GameDownload = require("./classes/game-download.js");
|
||||||
const GameInfo = require("./classes/game-info.js");
|
const GameInfo = require("./classes/game-info.js");
|
||||||
const {
|
const { isStringAValidURL, isF95URL, urlExists } = require("./urls-helper.js");
|
||||||
isStringAValidURL,
|
|
||||||
isF95URL,
|
|
||||||
urlExists
|
|
||||||
} = require("./urls-helper.js");
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @protected
|
* @protected
|
||||||
|
@ -153,8 +147,7 @@ async function getGameAuthor(page) {
|
||||||
// Get the game/mod name (without square brackets)
|
// Get the game/mod name (without square brackets)
|
||||||
const titleHTML = await page.evaluate(
|
const titleHTML = await page.evaluate(
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
(selector) =>
|
(selector) => document.querySelector(selector).innerHTML,
|
||||||
document.querySelector(selector).innerHTML,
|
|
||||||
selectors.GAME_TITLE
|
selectors.GAME_TITLE
|
||||||
);
|
);
|
||||||
const structuredTitle = HTMLParser.parse(titleHTML);
|
const structuredTitle = HTMLParser.parse(titleHTML);
|
||||||
|
@ -227,8 +220,7 @@ async function getGameTitle(page) {
|
||||||
// Get the game/mod name (without square brackets)
|
// Get the game/mod name (without square brackets)
|
||||||
const titleHTML = await page.evaluate(
|
const titleHTML = await page.evaluate(
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
(selector) =>
|
(selector) => document.querySelector(selector).innerHTML,
|
||||||
document.querySelector(selector).innerHTML,
|
|
||||||
selectors.GAME_TITLE
|
selectors.GAME_TITLE
|
||||||
);
|
);
|
||||||
const structuredTitle = HTMLParser.parse(titleHTML);
|
const structuredTitle = HTMLParser.parse(titleHTML);
|
||||||
|
|
Loading…
Reference in New Issue