Skip to content

Commit 3d930a9

Browse files
committed
use || for transaction name assignment
1 parent acff1c5 commit 3d930a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tracing/src/transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
3737
this._hub = hub as Hub;
3838
}
3939

40-
this.name = transactionContext.name ? transactionContext.name : '';
40+
this.name = transactionContext.name || '';
4141

4242
this._trimEnd = transactionContext.trimEnd;
4343

0 commit comments

Comments
 (0)