Skip to content

Commit 4a4485b

Browse files
one line return (#36930)
1 parent 16cb92b commit 4a4485b

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

extensions/amp-story-panning-media/0.1/amp-story-panning-media.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ export class AmpStoryPanningMedia extends AMP.BaseElement {
9494
/** @override */
9595
buildCallback() {
9696
return Services.storyStoreServiceForOrNull(this.win).then(
97-
(storeService) => {
98-
this.storeService_ = storeService;
99-
}
97+
(storeService) => (this.storeService_ = storeService)
10098
);
10199
}
102100

@@ -153,12 +151,11 @@ export class AmpStoryPanningMedia extends AMP.BaseElement {
153151
);
154152
// Mutation observer for distance attribute
155153
const config = {attributes: true, attributeFilter: ['distance']};
156-
const callback = (mutationsList) => {
157-
this.pageDistance_ = parseInt(
154+
const callback = (mutationsList) =>
155+
(this.pageDistance_ = parseInt(
158156
mutationsList[0].target.getAttribute('distance'),
159157
10
160-
);
161-
};
158+
));
162159
const observer = new MutationObserver(callback);
163160
this.getPage_() && observer.observe(this.getPage_(), config);
164161
}

0 commit comments

Comments
 (0)