Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Sep 22, 2023
1 parent 93244f1 commit b0a65b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/task_manager/server/task_validator.ts
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ export class TaskValidator {

let state = task.state;

// Skip validating tasks who don't use state
// Skip validating tasks that don't use state
if (!latestStateSchema && isEmpty(state)) {
return task;
}
@@ -110,7 +110,7 @@ export class TaskValidator {
const taskTypeDef = this.definitions.get(task.taskType);
const latestStateSchema = this.cachedGetLatestStateSchema(taskTypeDef);

// Skip validating tasks who don't use state
// Skip validating tasks that don't use state
if (!latestStateSchema && isEmpty(task.state)) {
return task;
}

0 comments on commit b0a65b3

Please sign in to comment.