Skip to content

Commit 1dc236f

Browse files
Lms24claude
andcommitted
ref(core): Simplify span end time computation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent c767019 commit 1dc236f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/core/src/tracing/sentrySpan.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ export class SentrySpan implements Span {
366366
* device slept), and it can never be negative.
367367
*/
368368
private _getEndTimeFromDuration(): number {
369-
const performanceNow = this._startPerformanceNow == null ? undefined : safePerformanceNow();
370-
if (performanceNow == null || this._startPerformanceNow == null) {
369+
const performanceNow = safePerformanceNow();
370+
if (this._startPerformanceNow == null || performanceNow == null) {
371371
return timestampInSeconds();
372372
}
373373
return this._startTime + (performanceNow - this._startPerformanceNow) / 1000;

0 commit comments

Comments
 (0)