💄 use ?= for assignments

This commit is contained in:
Kevin Sawicki
2013-09-05 20:52:40 -07:00
parent e59a2dbb84
commit 0aedfd7af6

View File

@@ -18,8 +18,8 @@ class BufferedNodeProcess extends BufferedProcess
process.execPath
# Tell atom-shell to run like upstream node.
options = {} if not options?
options.env = Object.create(process.env) if not options.env?
options ?= {}
options.env ?= Object.create(process.env)
options.env['ATOM_SHELL_INTERNAL_RUN_AS_NODE'] = 1
args.unshift(command)