Skip to content

Commit

Permalink
Fix code style a bit
Browse files Browse the repository at this point in the history
eslint is now complaining about returning a double assignment, so
I had to move the double assignment to its own line.
  • Loading branch information
Zarel committed Jun 17, 2016
1 parent 6901229 commit 9a6a074
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tournaments/index.js
Expand Up @@ -843,7 +843,8 @@ function createTournament(room, format, generator, playerCap, isRated, args, out
output.errorReply("You cannot have a player cap that is less than 2.");
return;
}
return (room.game = exports.tournaments[room.id] = new Tournament(room, format, createTournamentGenerator(generator, args, output), playerCap, isRated));
room.game = exports.tournaments[room.id] = new Tournament(room, format, createTournamentGenerator(generator, args, output), playerCap, isRated);
return room.game;
}
function deleteTournament(id, output) {
let tournament = exports.tournaments[id];
Expand Down

0 comments on commit 9a6a074

Please sign in to comment.