Use Array.isArray instead
This commit is contained in:
+1
-1
@@ -1833,7 +1833,7 @@ function exec(app, options, callback) {
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
var cmd = options.cmd || [ '/bin/bash' ];
|
||||
assert(util.isArray(cmd) && cmd.length > 0);
|
||||
assert(Array.isArray(cmd) && cmd.length > 0);
|
||||
|
||||
if (app.installationState !== exports.ISTATE_INSTALLED || app.runState !== exports.RSTATE_RUNNING) {
|
||||
return callback(new BoxError(BoxError.BAD_STATE, 'App not installed or running'));
|
||||
|
||||
Reference in New Issue
Block a user