File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ class API {
322
322
if ( ! opts ) opts = { } ;
323
323
324
324
var that = this ;
325
- if ( util . isArray ( opts . watch ) && opts . watch . length === 0 )
325
+ if ( Array . isArray ( opts . watch ) && opts . watch . length === 0 )
326
326
opts . watch = ( opts . rawArgs ? ! ! ~ opts . rawArgs . indexOf ( '--watch' ) : ! ! ~ process . argv . indexOf ( '--watch' ) ) || false ;
327
327
328
328
if ( Common . isConfigFile ( cmd ) || ( typeof ( cmd ) === 'object' ) ) {
@@ -1611,7 +1611,7 @@ class API {
1611
1611
1612
1612
delete appConf . exec_mode ;
1613
1613
1614
- if ( util . isArray ( appConf . watch ) && appConf . watch . length === 0 ) {
1614
+ if ( Array . isArray ( appConf . watch ) && appConf . watch . length === 0 ) {
1615
1615
if ( ! ~ opts . rawArgs . indexOf ( '--watch' ) )
1616
1616
delete appConf . watch
1617
1617
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ module.exports = function ClusterMode(God) {
29
29
30
30
var watch = pm2_env . watch
31
31
32
- if ( typeof watch == 'boolean' || util . isArray ( watch ) && watch . length === 0 )
32
+ if ( typeof watch == 'boolean' || Array . isArray ( watch ) && watch . length === 0 )
33
33
watch = pm2_env . pm_cwd ;
34
34
35
35
log ( 'Watching %s' , watch ) ;
You can’t perform that action at this time.
0 commit comments