From d5c9e067707f732a0aa77a5a34d7c09c1051e8fa Mon Sep 17 00:00:00 2001 From: Eric Lewis Date: Fri, 19 Jul 2019 11:00:06 -0400 Subject: [PATCH] Lint fixes --- src/service/performance-impl.js | 10 ++++++---- test/unit/test-performance.js | 4 +--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/service/performance-impl.js b/src/service/performance-impl.js index 06c970271245..6f2c1b2c5fb5 100644 --- a/src/service/performance-impl.js +++ b/src/service/performance-impl.js @@ -339,10 +339,12 @@ export class Performance { // Layout shift entries are not available from the Performance Timeline // through `getEntriesByType`, so a separate PerformanceObserver is // required for this metric. - const layoutInstabilityObserver = new this.win.PerformanceObserver(list => { - list.getEntries().forEach(processEntry); - this.flush(); - }); + const layoutInstabilityObserver = new this.win.PerformanceObserver( + list => { + list.getEntries().forEach(processEntry); + this.flush(); + } + ); layoutInstabilityObserver.observe({type: 'layout-shift', buffered: true}); } diff --git a/test/unit/test-performance.js b/test/unit/test-performance.js index 8b23df6639fc..b013c9831683 100644 --- a/test/unit/test-performance.js +++ b/test/unit/test-performance.js @@ -1363,9 +1363,7 @@ describes.realWin('PeformanceObserver metrics', {amp: true}, env => { toggleVisibility(fakeWin, true); performanceObserver.triggerCallback({ getEntries() { - return [ - {entryType: 'layout-shift', value: 2, hadRecentInput: false}, - ]; + return [{entryType: 'layout-shift', value: 2, hadRecentInput: false}]; }, });