Skip to content

Commit 43496a8

Browse files
committed
simplify heartbeatString creation
1 parent 4ea7b5d commit 43496a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/tracing/src/idletransaction.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ export class IdleTransaction extends Transaction {
238238
return;
239239
}
240240

241-
const keys = Object.keys(this.activities);
242-
const heartbeatString = keys.length ? keys.reduce((prev: string, current: string) => prev + current) : '';
241+
const heartbeatString = Object.keys(this.activities).join('');
243242

244243
if (heartbeatString === this._prevHeartbeatString) {
245244
this._heartbeatCounter += 1;

0 commit comments

Comments
 (0)