retab auto-verifier.ts and auto-verifier.test.ts

This commit is contained in:
Michael Peters 2022-10-05 21:40:02 -07:00
parent 4d41dd0087
commit 1e764419fb
2 changed files with 525 additions and 525 deletions

File diff suppressed because it is too large Load Diff

View File

@ -202,7 +202,7 @@ export class AutoVerifier<T> {
/* istanbul ignore next */
if (debug) LOG.debug(fetchId + ": created trusted promise, set to 'fetching'");
this.trustedStatus = 'fetching';
// TODO: The solution may be to merge the ensureTrustedFuncReady into the trustedPromise
// TODO: The solution may be to merge the ensureTrustedFuncReady into the trustedPromise
this.trustedPromise = this.trustedFunc();
}
@ -270,7 +270,7 @@ export class AutoVerifier<T> {
new Error(),
);
if (this.trustedPromise === null) {
/* istanbul ignore next */
/* istanbul ignore next */
if (debug) LOG.debug(fetchId + ': re-fetching since trustedPromise was null');
this.trustedStatus = 'fetching';
this.trustedPromise = this.trustedFunc();