Reduces the uid checks - less warnings

pull/227/head
Dana 2015-12-07 15:49:16 +00:00
rodzic 585f309b0c
commit e6cef5fe3b
1 zmienionych plików z 5 dodań i 1 usunięć

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

@ -12,7 +12,11 @@ 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){
if (user.uid === -1) return true;
}
if (hasInternalTestName(user)) return true;
if (hasInternalDomain(user.email)) return true;