Merge pull request +10964 from c9/reduce-uid-checks

[not trivial] Reduces the uid checks - less warnings
pull/227/head
Dana Ivan 2015-12-08 18:35:09 +01:00
commit 8c80d7b596
1 zmienionych plików z 6 dodań i 4 usunięć

4
node_modules/c9/skip-analytics.js wygenerowano vendored
Wyświetl plik

@ -12,7 +12,9 @@ define(function(require, exports, module) {
function skipAnalytics(user) {
if (!user) return true;
if (user.id === -1 || user.uid === -1) return true;
if (user.id === -1) return true;
if (!user.id && user.uid === -1) return true;
if (hasInternalTestName(user)) return true;
if (hasInternalDomain(user.email)) return true;