不要怂,就是干,撸起袖子干!

Commit 3dc40eb4 by José Moreira

code coherence

1 parent 50b1c0fd
Showing with 1 additions and 1 deletions
......@@ -74,7 +74,7 @@ ConnectionManager.prototype.disconnect = function(connection) {
});
};
ConnectionManager.prototype.validate = function(connection) {
return connection && [ 'disconnected', 'protocol_error' ].indexOf( connection.state ) !== -1;
return connection && ['disconnected', 'protocol_error'].indexOf(connection.state) !== -1;
};
module.exports = ConnectionManager;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!