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
deepsource-autofix[bot] 2020-10-22 11:48:49 +00:00 committed by GitHub
parent 04d1b864c3
commit 113dbe237c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -55,7 +55,9 @@ module.exports.getGameInfo = async function (browser, url) {
info.tags = await tags;
info.f95url = await redirectUrl;
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
? parsedInfos.UPDATED
: parsedInfos.THREAD_UPDATED;
@ -106,7 +108,7 @@ module.exports.getGameVersionFromTitle = async function (browser, info) {
//#region Private methods
/**
* Clean a string from invalid File System chars.
* @param {String} s
* @param {String} s
* @returns {String}
*/
function cleanFSString(s) {