mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
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:
parent
e275f353c1
commit
7b037ae8f2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue