Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
builder-247 authored and ChristianDobbie committed Jan 10, 2022
1 parent 122f272 commit da5b6fe
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion processors/games/MurderMystery.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = ({
MURDER_CLASSIC: 'classic',
MURDER_DOUBLE_UP: 'double_up',
MURDER_ASSASSINS: 'assassins',
MURDER_INFECTION: 'infection'
MURDER_INFECTION: 'infection',
};
Object.keys(betterModeNames).forEach((name) => {
gamemodes[betterModeNames[name]] = getModeStats(new RegExp(`(?<!${mapNames.join('|')})_${name}$`));
Expand Down
2 changes: 1 addition & 1 deletion processors/games/SkyWars.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = ({
lab_team: 'lab_team',
mega_normal: 'mega_normal',
mega_doubles: 'mega_doubles',
ranked: 'ranked'
ranked: 'ranked',
};
Object.keys(betterModeNames).forEach((name) => {
gamemodes[betterModeNames[name]] = getModeStats(new RegExp(`_${name}$`));
Expand Down
2 changes: 1 addition & 1 deletion processors/processGuildData.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function processGuildData({
exp_history: expHistory,
description,
preferred_games: getPreferredGames(preferredGames),
ranks: insertDefaultRanks(ranks, created).sort(r => -r.priority),
ranks: insertDefaultRanks(ranks, created).sort((r) => -r.priority),
members: processedMembers,
achievements,
};
Expand Down
2 changes: 0 additions & 2 deletions store/buildPlayer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/* eslint-disable consistent-return */
const async = require('async');
const pify = require('pify');
const config = require('../config');
const processPlayerData = require('../processors/processPlayerData');
const getUUID = require('./getUUID');
Expand Down
4 changes: 2 additions & 2 deletions util/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ function typeToStandardName(name) {
* Converts minigame types into clean names e.g. TNTGAMES => TNT Games
*/
function typeToCleanName(name) {
const result = constants.game_types.find((game) => game.type_name === name)
return result === undefined ? name : result.clean_name
const result = constants.game_types.find((game) => game.type_name === name);
return result === undefined ? name : result.clean_name;
}

/**
Expand Down

0 comments on commit da5b6fe

Please sign in to comment.