Add stricter/better ESLint config (#589)

* Add stricter/better ESLint config

* Remove more unnecessary @returns
This commit is contained in:
Schuyler Cebulskie
2016-09-03 15:45:23 -04:00
committed by Amish Shah
parent 2682c07bd8
commit 68acf37fd4
33 changed files with 266 additions and 174 deletions

View File

@@ -20,7 +20,7 @@ class ChannelPinsUpdate extends AbstractHandler {
const time = new Date(data.last_pin_timestamp);
if (channel && time) {
return client.emit(Constants.Events.CHANNEL_PINS_UPDATE, channel, time);
client.emit(Constants.Events.CHANNEL_PINS_UPDATE, channel, time);
}
}

View File

@@ -45,14 +45,12 @@ class PresenceUpdateHandler extends AbstractHandler {
data.user.status = data.status || user.status;
data.user.game = data.game;
const same = (
data.user.username === user.username &&
const same = data.user.username === user.username &&
data.user.id === user.id &&
data.user.discriminator === user.discriminator &&
data.user.avatar === user.avatar &&
data.user.status === user.status &&
JSON.stringify(data.user.game) === JSON.stringify(user.game)
);
JSON.stringify(data.user.game) === JSON.stringify(user.game);
if (!same) {
const oldUser = cloneObject(user);

View File

@@ -29,7 +29,7 @@ class ReadyHandler extends AbstractHandler {
this.packetManager.ws.sessionID = data.session_id;
this.packetManager.ws.checkIfReady('abc');
this.packetManager.ws.checkIfReady();
}
}