style: auto-fix ESLint issues (curly braces and formatting)
- Add curly braces to all if/else/for/while statements - Fix indentation and trailing spaces - Auto-fixed 372 linting errors using eslint --fix - Remaining issues are warnings only (non-null assertions, explicit any types)
This commit is contained in:
@@ -31,7 +31,7 @@ export class CronScheduler implements ChannelAdapter {
|
||||
this._status = 'connected';
|
||||
|
||||
for (const job of this.jobConfigs) {
|
||||
if (!job.enabled) continue;
|
||||
if (!job.enabled) {continue;}
|
||||
|
||||
const cronInstance = new Cron(job.schedule, {
|
||||
timezone: job.timezone,
|
||||
@@ -81,7 +81,7 @@ export class CronScheduler implements ChannelAdapter {
|
||||
/** Manually trigger a job (also called by cron on schedule). */
|
||||
triggerJob(jobName: string): void {
|
||||
const job = this.jobs.get(jobName);
|
||||
if (!job) return;
|
||||
if (!job) {return;}
|
||||
|
||||
const msg: InboundMessage = {
|
||||
id: `cron-${jobName}-${Date.now()}`,
|
||||
|
||||
Reference in New Issue
Block a user