chore: Comment out unreachable code in ExpectationService

The `return` looks temporary but I don't know this code well enough.

Solves this eslint issue:

/puter/packages/backend/src/services/runtime-analysis/ExpectationService.js
  94:9  error  Unreachable code  no-unreachable
This commit is contained in:
Sam Atkins
2024-05-01 10:50:14 +01:00
parent 0df0de6507
commit 2094e05a2e
@@ -91,12 +91,13 @@ class ExpectationService extends BaseService {
purgeExpectations_ () {
return;
for ( let i=0 ; i < this.expectations_.length ; i++ ) {
if ( this.expectations_[i].check() ) {
this.expectations_[i] = null;
}
}
this.expectations_ = this.expectations_.filter(v => v !== null);
// TODO: Re-enable this
// for ( let i=0 ; i < this.expectations_.length ; i++ ) {
// if ( this.expectations_[i].check() ) {
// this.expectations_[i] = null;
// }
// }
// this.expectations_ = this.expectations_.filter(v => v !== null);
}
expect_eventually ({ workUnit, checkpoint }) {