Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Handle undefined options
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Colyer committed Oct 3, 2013
1 parent 6209893 commit 162824e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/command.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ class Command
outputChunks = []

spawned.stdout.on 'data', (chunk) ->
if options.streaming
if options?.streaming
process.stdout.write chunk
else
outputChunks.push(chunk)

spawned.stderr.on 'data', (chunk) ->
if options.streaming
if options?.streaming
process.stderr.write chunk
else
errorChunks.push(chunk)
Expand Down

0 comments on commit 162824e

Please sign in to comment.