Skip to content

Commit

Permalink
Parsing telemetry env properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
BugDiver committed Oct 22, 2018
1 parent d92eb36 commit 1345820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var getPostOptions = function (data) {


var send = function (medium) {
if (!process.env.GAUGE_TELEMETRY_ENABLED) { return Promise.resolve(); }
if (!JSON.parse(process.env.GAUGE_TELEMETRY_ENABLED)) { return Promise.resolve(); }
if (medium === "console" && isCI()) { medium = "CI"; }
var data = getPostData(medium, process.env.GAUGE_UNIQUE_INSTALLATION_ID);
return new Promise(function (resolve, reject) {
Expand Down

0 comments on commit 1345820

Please sign in to comment.