Format code with prettier
This commit fixes the style issues introduced in 70cfa36
according to the output
from prettier.
Details: https://deepsource.io/gh/MillenniumEarl/F95API/transform/993626fc-2360-435e-bdd4-3953d601146a/
pull/38/head
parent
70cfa36b4f
commit
f838c5cc68
|
@ -55,7 +55,9 @@ module.exports.getGameInfo = async function (browser, url) {
|
||||||
info.tags = await tags;
|
info.tags = await tags;
|
||||||
info.f95url = await redirectUrl;
|
info.f95url = await redirectUrl;
|
||||||
info.overview = overview;
|
info.overview = overview;
|
||||||
info.version = info.isMod ? cleanFSString(parsedInfos.MOD_VERSION) : cleanFSString(parsedInfos.VERSION);
|
info.version = info.isMod
|
||||||
|
? cleanFSString(parsedInfos.MOD_VERSION)
|
||||||
|
: cleanFSString(parsedInfos.VERSION);
|
||||||
info.lastUpdate = info.isMod
|
info.lastUpdate = info.isMod
|
||||||
? parsedInfos.UPDATED
|
? parsedInfos.UPDATED
|
||||||
: parsedInfos.THREAD_UPDATED;
|
: parsedInfos.THREAD_UPDATED;
|
||||||
|
@ -107,7 +109,7 @@ module.exports.getGameVersionFromTitle = async function (browser, info) {
|
||||||
//#region Private methods
|
//#region Private methods
|
||||||
/**
|
/**
|
||||||
* Clean a string from invalid File System chars.
|
* Clean a string from invalid File System chars.
|
||||||
* @param {String} s
|
* @param {String} s
|
||||||
* @returns {String}
|
* @returns {String}
|
||||||
*/
|
*/
|
||||||
function cleanFSString(s) {
|
function cleanFSString(s) {
|
||||||
|
|
Loading…
Reference in New Issue