Skip to content

Commit

Permalink
fix: remove optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
renanccastro committed May 22, 2024
1 parent 0f637b9 commit 94d9c04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/client/hijack/wrapSubscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function wrapSubscription () {
const onReady = () => {
Kadira.webVitals.completedObjects += 1;
Kadira.webVitals.subs.push({ start, end: Ntp._now() });
oldReady?.();
oldReady && oldReady();

Check failure on line 30 in lib/client/hijack/wrapSubscription.js

View workflow job for this annotation

GitHub Actions / build

Expected an assignment or function call and instead saw an expression
};
callbacks.onReady = onReady;
return oldSubscribe(arguments[0],...params, callbacks);
Expand Down
1 change: 0 additions & 1 deletion lib/client/models/webVitals.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ export class WebVitalsModel {
},{}),
...browserInfo,
commitHash: Meteor.gitCommitHash,
cacheCleaned: !localStorage?.length && !sessionStorage?.length,
archVersion: getClientArchVersion(arch),
incompleteSession: this.pendingObjects > 0 && this.pendingObjects > this.completedObjects
};
Expand Down

0 comments on commit 94d9c04

Please sign in to comment.