Skip to content

Commit ba17979

Browse files
authored
Fix instances of "Expression has no effect" warning in SessionService.js (#251)
1 parent 81bce4a commit ba17979

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/session/SessionService.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const ERROR_PREFIX = 'Error when notifying listener: ';
4343
class SessionService {
4444
constructor(openmct, openmctMCWSConfig) {
4545
this.openmct = openmct;
46-
this.datasetCache;
46+
this.datasetCache = null;
4747

4848
this.subscriptions = {
4949
session: [],
@@ -80,7 +80,7 @@ class SessionService {
8080

8181
return () => {
8282
this.subscriptions.session = this.subscriptions.session.filter((cb) => {
83-
cb !== callback;
83+
return cb !== callback;
8484
});
8585
};
8686
};
@@ -100,7 +100,7 @@ class SessionService {
100100

101101
return () => {
102102
this.subscriptions.historical = this.subscriptions.historical.filter((cb) => {
103-
cb !== callback;
103+
return cb !== callback;
104104
});
105105
};
106106
};

0 commit comments

Comments
 (0)