mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Guard against null options
This commit is contained in:
@@ -25,7 +25,7 @@ module.exports = (grunt) ->
|
||||
stderrChunks = []
|
||||
spawned.stderr.on 'data', (data) -> stderrChunks.push(data)
|
||||
spawned.on 'close', (code) ->
|
||||
if code is 0 or options.ignoreFailures
|
||||
if code is 0 or options?.ignoreFailures
|
||||
callback(null, Buffer.concat(stdoutChunks).toString())
|
||||
else if stderrChunks.length > 0
|
||||
error = Buffer.concat(stderrChunks).toString()
|
||||
|
||||
Reference in New Issue
Block a user