@fireproof/core 0.7.2-dev.7 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39130,12 +39130,10 @@ class Base {
39130
39130
 
39131
39131
  carReaderCache = new Map()
39132
39132
  async getCarReader (carCid) {
39133
- if (this.carReaderCache.has(carCid)) {
39134
- return this.carReaderCache.get(carCid)
39133
+ if (!this.carReaderCache.has(carCid)) {
39134
+ this.carReaderCache.set(carCid, this.getCarReaderImpl(carCid));
39135
39135
  }
39136
- const result = await this.getCarReaderImpl(carCid);
39137
- this.carReaderCache.set(carCid, result);
39138
- return result
39136
+ return this.carReaderCache.get(carCid)
39139
39137
  }
39140
39138
 
39141
39139
  async getCarReaderImpl (carCid) {