Skip to content

Commit f55d5fd

Browse files
committed
chore: Bail out early
1 parent aac3b00 commit f55d5fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/features/session_trace/aggregate/trace

src/features/session_trace/aggregate/trace/storage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2020-2025 New Relic, Inc. All rights reserved.
2+
* Copyright 2020-2026 New Relic, Inc. All rights reserved.
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55
import { MODE } from '../../../../common/session/constants'
@@ -168,7 +168,7 @@ export class TraceStorage {
168168
if (!(typeof val === 'number' && val >= 0)) continue
169169

170170
val = Math.round(val)
171-
if (this.parent.timeKeeper && this.parent.timeKeeper.ready && isAbsoluteTimestamp) {
171+
if (isAbsoluteTimestamp && this.parent.timeKeeper && this.parent.timeKeeper.ready) {
172172
val = this.parent.timeKeeper.convertAbsoluteTimestamp(
173173
Math.floor(this.parent.timeKeeper.correctAbsoluteTimestamp(val))
174174
)

0 commit comments

Comments
 (0)