@fireproof/core 0.7.2-dev.7 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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) {