File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export class HeartbeatServiceImpl implements HeartbeatService {
88
88
// service, not the browser user agent.
89
89
const agent = platformLogger . getPlatformInfoString ( ) ;
90
90
const date = getUTCDateString ( ) ;
91
- if ( this . _heartbeatsCache = == null ) {
91
+ if ( this . _heartbeatsCache ?. heartbeats == null ) {
92
92
this . _heartbeatsCache = await this . _heartbeatsCachePromise ;
93
93
}
94
94
// Do not store a heartbeat if one is already stored for this day
@@ -127,10 +127,8 @@ export class HeartbeatServiceImpl implements HeartbeatService {
127
127
await this . _heartbeatsCachePromise ;
128
128
}
129
129
// If it's still null or the array is empty, there is no data to send.
130
- if (
131
- this . _heartbeatsCache === null ||
132
- this . _heartbeatsCache . heartbeats . length === 0
133
- ) {
130
+ if ( this . _heartbeatsCache ?. heartbeats == null ||
131
+ this . _heartbeatsCache . heartbeats . length === 0 ) {
134
132
return '' ;
135
133
}
136
134
const date = getUTCDateString ( ) ;
You can’t perform that action at this time.
0 commit comments