mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use built-in underscore from grunt.util
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
{spawn} = require 'child_process'
|
||||
fs = require 'fs'
|
||||
path = require 'path'
|
||||
_ = require 'underscore'
|
||||
|
||||
BUILD_DIR = '/tmp/atom-build/atom-shell'
|
||||
APP_NAME = 'Atom.app'
|
||||
@@ -11,10 +10,10 @@ INSTALL_DIR = path.join('/Applications', APP_NAME)
|
||||
|
||||
module.exports = (grunt) ->
|
||||
exec = (command, args, options, callback) ->
|
||||
if _.isFunction(args)
|
||||
if grunt.util._.isFunction(args)
|
||||
options = args
|
||||
args = []
|
||||
if _.isFunction(options)
|
||||
if grunt.util._.isFunction(options)
|
||||
callback = options
|
||||
options = undefined
|
||||
|
||||
|
||||
Reference in New Issue
Block a user