Add eslint (#741)
This commit is contained in:
parent
953428cad5
commit
62417f7fb8
72 changed files with 305 additions and 323 deletions
|
|
@ -5,7 +5,7 @@ export default class NullClusterClient {
|
|||
this.ioConfig = ioConfig;
|
||||
}
|
||||
|
||||
getSocketConfig(channel) {
|
||||
getSocketConfig(_channel) {
|
||||
const servers = this.ioConfig.getSocketEndpoints();
|
||||
return Promise.resolve({
|
||||
servers: servers
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ class IOServer {
|
|||
if (auth) {
|
||||
promises.push(verifySession(auth).then(user => {
|
||||
socket.context.user = Object.assign({}, user);
|
||||
}).catch(error => {
|
||||
}).catch(_error => {
|
||||
authFailureCount.inc(1);
|
||||
LOGGER.warn('Unable to verify session for %s - ignoring auth',
|
||||
socket.context.ipAddress);
|
||||
|
|
@ -210,7 +210,7 @@ class IOServer {
|
|||
|
||||
promises.push(getAliases(socket.context.ipAddress).then(aliases => {
|
||||
socket.context.aliases = aliases;
|
||||
}).catch(error => {
|
||||
}).catch(_error => {
|
||||
LOGGER.warn('Unable to load aliases for %s',
|
||||
socket.context.ipAddress);
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue