Skip to content

Commit

Permalink
Fix instances of "Expression has no effect" warning in SessionService…
Browse files Browse the repository at this point in the history
….js (#251)
  • Loading branch information
jvigliotta authored Jan 16, 2025
1 parent 81bce4a commit ba17979
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/session/SessionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ERROR_PREFIX = 'Error when notifying listener: ';
class SessionService {
constructor(openmct, openmctMCWSConfig) {
this.openmct = openmct;
this.datasetCache;
this.datasetCache = null;

this.subscriptions = {
session: [],
Expand Down Expand Up @@ -80,7 +80,7 @@ class SessionService {

return () => {
this.subscriptions.session = this.subscriptions.session.filter((cb) => {
cb !== callback;
return cb !== callback;
});
};
};
Expand All @@ -100,7 +100,7 @@ class SessionService {

return () => {
this.subscriptions.historical = this.subscriptions.historical.filter((cb) => {
cb !== callback;
return cb !== callback;
});
};
};
Expand Down

0 comments on commit ba17979

Please sign in to comment.