@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.
@@ -39132,12 +39132,10 @@ class Base {
39132
39132
 
39133
39133
  carReaderCache = new Map()
39134
39134
  async getCarReader (carCid) {
39135
- if (this.carReaderCache.has(carCid)) {
39136
- return this.carReaderCache.get(carCid)
39135
+ if (!this.carReaderCache.has(carCid)) {
39136
+ this.carReaderCache.set(carCid, this.getCarReaderImpl(carCid));
39137
39137
  }
39138
- const result = await this.getCarReaderImpl(carCid);
39139
- this.carReaderCache.set(carCid, result);
39140
- return result
39138
+ return this.carReaderCache.get(carCid)
39141
39139
  }
39142
39140
 
39143
39141
  async getCarReaderImpl (carCid) {