Use Array.isArray instead

This commit is contained in:
Girish Ramakrishnan
2021-05-02 11:26:08 -07:00
parent 442110a437
commit 199eda82d1
25 changed files with 47 additions and 47 deletions
+1 -1
View File
@@ -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'));