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.
This commit is contained in:
mbilker 2015-12-08 18:02:34 -05:00
parent e275f353c1
commit 7b037ae8f2

View file

@ -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