From 7b037ae8f2a42faacd5489215bc305994578987e Mon Sep 17 00:00:00 2001 From: mbilker Date: Tue, 8 Dec 2015 18:02:34 -0500 Subject: [PATCH] fix(tests): replace () with [] for properties of process.env This bug appeared during a Travis test run, and only appeared on the Linux hosts running the tests. The function appears to treat the `process.env` as a set of functions, not properties. This commit correctly interprets them as properties. --- build/tasks/task-helpers.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/tasks/task-helpers.coffee b/build/tasks/task-helpers.coffee index 23c5a916e..1f2ded47b 100644 --- a/build/tasks/task-helpers.coffee +++ b/build/tasks/task-helpers.coffee @@ -77,9 +77,9 @@ module.exports = (grunt) -> false notifyAPI: (msg, callback) -> - if (process.env("NYLAS_INTERNAL_HOOK_URL") ? "").length > 0 + if (process.env.NYLAS_INTERNAL_HOOK_URL ? "").length > 0 request.post - url: process.env("NYLAS_INTERNAL_HOOK_URL") + url: process.env.NYLAS_INTERNAL_HOOK_URL json: username: "Edgehill Builds" text: msg