Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Jun 2, 2017
1 parent c927b76 commit e458067
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion extensions/amp-form/0.1/amp-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,9 @@ export class AmpForm {
})
.then(() => this.doXhr_())
.then(response => this.handleXhrSubmitSuccess_(response),
error => this.handleXhrSubmitFailure_(error));
error => {
return this.handleXhrSubmitFailure_(/** @type {!Error} */(error));
});

if (getMode().test) {
this.xhrSubmitPromise_ = p;
Expand Down
4 changes: 3 additions & 1 deletion extensions/amp-form/0.1/form-verifiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ export class AsyncVerifier extends FormVerifier {
if (this.shouldVerify_()) {
const xhrConsumeErrors = this.doXhr_().then(() => {
return [];
}, getResponseErrorData_);
}, error => {
return getResponseErrorData_(/** @type {!Error} */(error));
});

const p = this.addToResolver_(xhrConsumeErrors)
.then(errors => this.verify_(errors))
Expand Down

0 comments on commit e458067

Please sign in to comment.