Disallow var
Summary: We're ES6 and `var`s scoping rules are weird. Let's block this. Reviewed By: jknoxville Differential Revision: D16131290 fbshipit-source-id: ba67d16bb8a185a4bb59a657a97b00230dbacafe
This commit is contained in:
committed by
Facebook Github Bot
parent
af8fbf2b46
commit
662db20948
@@ -334,7 +334,7 @@ class ConnectionTracker {
|
||||
logConnectionAttempt(client: ClientQuery) {
|
||||
const key = `${client.os}-${client.device}-${client.app}`;
|
||||
const time = Date.now();
|
||||
var entry = this.connectionAttempts.get(key) || [];
|
||||
let entry = this.connectionAttempts.get(key) || [];
|
||||
entry.push(time);
|
||||
entry = entry.filter(t => t >= time - this.timeWindowMillis);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user