Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Voytenko committed Feb 23, 2021
1 parent fc8057f commit d92b1f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 3 additions & 4 deletions extensions/amp-story/1.0/page-advancement.js
Original file line number Diff line number Diff line change
Expand Up @@ -1011,10 +1011,9 @@ export class MediaBasedAdvancement extends AdvancementConfig {
super.start();

// Prevents race condition when checking for video interface classname.
(this.element_.build
? this.element_.build()
: Promise.resolve()
).then(() => this.startWhenBuilt_());
(this.element_.build ? this.element_.build() : Promise.resolve()).then(() =>
this.startWhenBuilt_()
);
}

/** @private */
Expand Down
4 changes: 1 addition & 3 deletions test/unit/test-amp-img-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ describes.realWin('amp-img V1', {amp: true}, (env) => {

it('testElementV1', () => {
testElementV1(AmpImg, {
exceptions: [
'Must not use getLayoutSize',
],
exceptions: ['Must not use getLayoutSize'],
});
});

Expand Down

0 comments on commit d92b1f5

Please sign in to comment.