mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
Fix space-before-function-paren linter rule
This commit is contained in:
@@ -8,7 +8,7 @@ var ratelimit = {};
|
||||
var allowedCalls = 100;
|
||||
var timeframe = 10000;
|
||||
|
||||
ratelimit.isFlooding = function(socket) {
|
||||
ratelimit.isFlooding = function (socket) {
|
||||
socket.callsPerSecond = socket.callsPerSecond || 0;
|
||||
socket.elapsedTime = socket.elapsedTime || 0;
|
||||
socket.lastCallTime = socket.lastCallTime || Date.now();
|
||||
|
||||
Reference in New Issue
Block a user