Skip to content

Commit

Permalink
[ML] remove redundant check and fallback for calendars
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Nov 28, 2019
1 parent 02f9e98 commit 58e5372
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class JobCreator {
}

public get calendars(): Calendar[] {
return this._calendars || [];
return this._calendars;
}

public set calendars(calendars: Calendar[]) {
Expand Down Expand Up @@ -368,7 +368,7 @@ export class JobCreator {
* @private
*/
private async _updateCalendars() {
if (!this._calendars || this._calendars.length === 0) {
if (this._calendars.length === 0) {
return;
}

Expand Down

0 comments on commit 58e5372

Please sign in to comment.