Skip to content

Commit

Permalink
Bug 1063110: use arrow fn to capture outer scope in closure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihneadb committed Aug 6, 2015
1 parent 2a881a7 commit 20f5c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/task.js
Expand Up @@ -598,7 +598,7 @@ export default class Task {
return await this.abortRun(this.taskState);
}
// Validate the schema!
let payloadErrors = await validator().then(function (validator) {
let payloadErrors = await validator().then((validator) => {
return validator.check(this.task.payload, payloadSchema);
});

Expand Down

0 comments on commit 20f5c74

Please sign in to comment.