Format code with prettier
This commit fixes the style issues introduced in 89706ce according to the output
from prettier.
Details: https://deepsource.io/gh/MillenniumEarl/F95API/transform/5987f489-3741-4ea4-8bab-20a3be8d16df/
			
			
				pull/19/head
			
			
		
							parent
							
								
									89706ce3e0
								
							
						
					
					
						commit
						7a1c8610e6
					
				| 
						 | 
					@ -98,7 +98,6 @@ var _browser = null;
 | 
				
			||||||
 * @returns {Promise<LoginResult>} Result of the operation
 | 
					 * @returns {Promise<LoginResult>} Result of the operation
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
module.exports.login = async function (username, password) {
 | 
					module.exports.login = async function (username, password) {
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  if (shared.isLogged) {
 | 
					  if (shared.isLogged) {
 | 
				
			||||||
    if (shared.debug) console.log("Already logged in");
 | 
					    if (shared.debug) console.log("Already logged in");
 | 
				
			||||||
    let result = new LoginResult();
 | 
					    let result = new LoginResult();
 | 
				
			||||||
| 
						 | 
					@ -146,7 +145,6 @@ module.exports.login = async function (username, password) {
 | 
				
			||||||
 * @returns {Promise<Boolean>} Result of the operation
 | 
					 * @returns {Promise<Boolean>} Result of the operation
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
module.exports.loadF95BaseData = async function () {
 | 
					module.exports.loadF95BaseData = async function () {
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  if (!shared.isLogged || !shared.cookies) {
 | 
					  if (!shared.isLogged || !shared.cookies) {
 | 
				
			||||||
    console.warn("User not authenticated, unable to continue");
 | 
					    console.warn("User not authenticated, unable to continue");
 | 
				
			||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
| 
						 | 
					@ -196,7 +194,6 @@ module.exports.loadF95BaseData = async function () {
 | 
				
			||||||
 * @returns {Promise<Boolean>} true if an update is available, false otherwise
 | 
					 * @returns {Promise<Boolean>} true if an update is available, false otherwise
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
module.exports.chekIfGameHasUpdate = async function (info) {
 | 
					module.exports.chekIfGameHasUpdate = async function (info) {
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  if (!shared.isLogged || !shared.cookies) {
 | 
					  if (!shared.isLogged || !shared.cookies) {
 | 
				
			||||||
    console.warn("user not authenticated, unable to continue");
 | 
					    console.warn("user not authenticated, unable to continue");
 | 
				
			||||||
    return info.version;
 | 
					    return info.version;
 | 
				
			||||||
| 
						 | 
					@ -227,7 +224,6 @@ module.exports.chekIfGameHasUpdate = async function (info) {
 | 
				
			||||||
 * an identified game (in the case of homonymy). If no games were found, null is returned
 | 
					 * an identified game (in the case of homonymy). If no games were found, null is returned
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
module.exports.getGameData = async function (name, includeMods) {
 | 
					module.exports.getGameData = async function (name, includeMods) {
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  if (!shared.isLogged || !shared.cookies) {
 | 
					  if (!shared.isLogged || !shared.cookies) {
 | 
				
			||||||
    console.warn("user not authenticated, unable to continue");
 | 
					    console.warn("user not authenticated, unable to continue");
 | 
				
			||||||
    return null;
 | 
					    return null;
 | 
				
			||||||
| 
						 | 
					@ -265,7 +261,6 @@ module.exports.getGameData = async function (name, includeMods) {
 | 
				
			||||||
 * @returns {Promise<GameInfo>} Information about the game. If no game was found, null is returned
 | 
					 * @returns {Promise<GameInfo>} Information about the game. If no game was found, null is returned
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
module.exports.getGameDataFromURL = async function (url) {
 | 
					module.exports.getGameDataFromURL = async function (url) {
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  if (!shared.isLogged || !shared.cookies) {
 | 
					  if (!shared.isLogged || !shared.cookies) {
 | 
				
			||||||
    console.warn("user not authenticated, unable to continue");
 | 
					    console.warn("user not authenticated, unable to continue");
 | 
				
			||||||
    return null;
 | 
					    return null;
 | 
				
			||||||
| 
						 | 
					@ -292,7 +287,6 @@ module.exports.getGameDataFromURL = async function (url) {
 | 
				
			||||||
 * @returns {Promise<UserData>} Data of the user currently logged in or null if an error arise
 | 
					 * @returns {Promise<UserData>} Data of the user currently logged in or null if an error arise
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
module.exports.getUserData = async function () {
 | 
					module.exports.getUserData = async function () {
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  if (!shared.isLogged || !shared.cookies) {
 | 
					  if (!shared.isLogged || !shared.cookies) {
 | 
				
			||||||
    console.warn("user not authenticated, unable to continue");
 | 
					    console.warn("user not authenticated, unable to continue");
 | 
				
			||||||
    return null;
 | 
					    return null;
 | 
				
			||||||
| 
						 | 
					@ -339,7 +333,6 @@ module.exports.getUserData = async function () {
 | 
				
			||||||
 * You **must** be logged in to the portal before calling this method.
 | 
					 * You **must** be logged in to the portal before calling this method.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
module.exports.logout = async function () {
 | 
					module.exports.logout = async function () {
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  if (!shared.isLogged || !shared.cookies) {
 | 
					  if (!shared.isLogged || !shared.cookies) {
 | 
				
			||||||
    console.warn("user not authenticated, unable to continue");
 | 
					    console.warn("user not authenticated, unable to continue");
 | 
				
			||||||
    return;
 | 
					    return;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue