Skip to content

Commit

Permalink
deleted double semi
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Semin committed Nov 19, 2018
1 parent 58c8c89 commit 17c8626
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/sourcemap-auto-resolve/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ API.prototype.reload = function(process_name, opts, cb) {
Common.unlockReload();
if (err)
return cb ? cb(err) : that.exitCli(conf.ERROR_EXIT);
return cb ? cb(null, apps) : that.exitCli(conf.SUCCESS_EXIT);;
return cb ? cb(null, apps) : that.exitCli(conf.SUCCESS_EXIT);
});
else {
if (opts && !opts.updateEnv)
Expand All @@ -438,7 +438,7 @@ API.prototype.reload = function(process_name, opts, cb) {

if (err)
return cb ? cb(err) : that.exitCli(conf.ERROR_EXIT);
return cb ? cb(null, apps) : that.exitCli(conf.SUCCESS_EXIT);;
return cb ? cb(null, apps) : that.exitCli(conf.SUCCESS_EXIT);
});
}
};
Expand Down
4 changes: 2 additions & 2 deletions lib/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ class API {
Common.unlockReload();
if (err)
return cb ? cb(err) : that.exitCli(conf.ERROR_EXIT);
return cb ? cb(null, apps) : that.exitCli(conf.SUCCESS_EXIT);;
return cb ? cb(null, apps) : that.exitCli(conf.SUCCESS_EXIT);
});
else {
if (opts && !opts.updateEnv)
Expand All @@ -461,7 +461,7 @@ class API {

if (err)
return cb ? cb(err) : that.exitCli(conf.ERROR_EXIT);
return cb ? cb(null, apps) : that.exitCli(conf.SUCCESS_EXIT);;
return cb ? cb(null, apps) : that.exitCli(conf.SUCCESS_EXIT);
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/API/Version.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ module.exports = function(CLI) {

if (meta.success !== true) {
printOut(cst.PREFIX_MSG + 'No versioning system found for process %s', process_name);
return cb ? cb({msg:err, data : meta}) : that.exitCli(cst.ERROR_EXIT);;
return cb ? cb({msg:err, data : meta}) : that.exitCli(cst.ERROR_EXIT);
}

getPostUpdateCmds(proc.pm2_env.versioning.repo_path, process_name, function (command_list) {
Expand Down
2 changes: 1 addition & 1 deletion test/programmatic/json_validation.mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('JSON validation tests', function() {
});

// Returned array should contain also default values
Object.keys(ret.config).should.containDeep(default_values);;
Object.keys(ret.config).should.containDeep(default_values);
done();
});

Expand Down
2 changes: 1 addition & 1 deletion test/programmatic/max_memory_limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('Max memory restart programmatic', function() {

setTimeout(function() {
pm2.list(function(err, ret) {
should(err).be.null();;
should(err).be.null();
ret[0].pm2_env.restart_time.should.not.eql(0);
done();
});
Expand Down

0 comments on commit 17c8626

Please sign in to comment.