schedulerConfig cannot be null

This commit is contained in:
Girish Ramakrishnan
2015-10-20 09:44:46 -07:00
parent f7262c52f4
commit 09be0a2057
+3 -2
View File
@@ -121,9 +121,10 @@ function stopJobs(appId, appState, callback) {
}
function createCronJobs(appId, schedulerConfig) {
debug('creating cron jobs for app %s', appId);
assert.strictEqual(typeof appId, 'string');
assert(schedulerConfig && typeof schedulerConfig === 'object');
if (!schedulerConfig) return null;
debug('creating cron jobs for app %s', appId);
var jobs = { };