Skip to content

Commit 173dc0a

Browse files
guanzojuliangruber
andauthored
Update src/index.js
Co-authored-by: Julian Gruber <[email protected]>
1 parent 52163bc commit 173dc0a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,9 @@ class Saturn {
184184
return
185185
}
186186

187-
let bandwidthLogs = this.logs
188-
if (this.hasPerformanceAPI) {
189-
bandwidthLogs = this._matchLogsWithPerformanceMetrics(bandwidthLogs)
190-
}
187+
const bandwidthLogs = this.hasPerformanceAPI
188+
? this._matchLogsWithPerformanceMetrics(this.logs)
189+
: this.logs
191190

192191
await fetch(
193192
this.opts.logURL,

0 commit comments

Comments
 (0)