Skip to content

Commit

Permalink
improve meessaging on cast
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Dec 16, 2019
1 parent 8b49f74 commit 9aa684c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ export class TaskRunnerFactory {

const nextRunAt = getNextRunAt(
new Date(taskInstance.startedAt!),
// as we currenrtly only support `interval` we can cast
// this safely
// we do not currently have a good way of returning the type
// from SavedObjectsClient, and as we currenrtly require a schedule
// and we only support `interval`, we can cast this safely
schedule as IntervalSchedule
);

Expand Down

0 comments on commit 9aa684c

Please sign in to comment.