mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-19 22:58:32 -05:00
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:
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user