Format code with prettier
This commit fixes the style issues introduced in 04d1b86
according to the output
from prettier.
Details: https://deepsource.io/gh/MillenniumEarl/F95API/transform/6e0127b1-bc01-4320-82e4-1693dd157311/
pull/37/head
parent
04d1b864c3
commit
113dbe237c
|
@ -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;
|
||||||
|
@ -106,7 +108,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