(err, entry)
| 2735 | * @returns {void} |
| 2736 | */ |
| 2737 | const callback = (err, entry) => { |
| 2738 | if (err) { |
| 2739 | if (this.logger) { |
| 2740 | this.logger.debug( |
| 2741 | `Error snapshotting context timestamp hash combination of ${path}: ${err.stack}` |
| 2742 | ); |
| 2743 | } |
| 2744 | jobError(); |
| 2745 | } else { |
| 2746 | contextTshs.set( |
| 2747 | path, |
| 2748 | /** @type {ResolvedContextTimestampAndHash | null} */ |
| 2749 | (entry) |
| 2750 | ); |
| 2751 | jobDone(); |
| 2752 | } |
| 2753 | }; |
| 2754 | if (cache !== undefined) { |
| 2755 | this._resolveContextTsh(cache, callback); |
| 2756 | } else { |
no test coverage detected