From 3e51fd027a8d6b28844789d4f655b72e908ea0e2 Mon Sep 17 00:00:00 2001 From: amper43 Date: Wed, 10 Oct 2018 15:40:28 +0300 Subject: [PATCH] fix according review --- analytics/.dockerignore | 2 +- analytics/config.py | 2 -- server/src/services/analytics_service.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/analytics/.dockerignore b/analytics/.dockerignore index 0a87603..ce5fca2 100644 --- a/analytics/.dockerignore +++ b/analytics/.dockerignore @@ -1,5 +1,5 @@ .git npm-debug node_modules -__pychache__ +__pycache__ .vscode diff --git a/analytics/config.py b/analytics/config.py index 97faa14..d71d955 100644 --- a/analytics/config.py +++ b/analytics/config.py @@ -1,5 +1,3 @@ - - import os import json diff --git a/server/src/services/analytics_service.ts b/server/src/services/analytics_service.ts index 8cec1a4..a41940a 100644 --- a/server/src/services/analytics_service.ts +++ b/server/src/services/analytics_service.ts @@ -23,7 +23,7 @@ export class AnalyticsService { constructor(private _onMessage: (message: AnalyticsMessage) => void) { this._productionMode = process.env.NODE_ENV !== 'development'; - this._inDocker = process.env.INSIDE_DOCKER === 'true'; + this._inDocker = process.env.INSIDE_DOCKER !== undefined; this._init(); }