@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.
package/dist/src/fireproof.mjs
CHANGED
@@ -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
|
-
|
39133
|
+
if (!this.carReaderCache.has(carCid)) {
|
39134
|
+
this.carReaderCache.set(carCid, this.getCarReaderImpl(carCid));
|
39135
39135
|
}
|
39136
|
-
|
39137
|
-
this.carReaderCache.set(carCid, result);
|
39138
|
-
return result
|
39136
|
+
return this.carReaderCache.get(carCid)
|
39139
39137
|
}
|
39140
39138
|
|
39141
39139
|
async getCarReaderImpl (carCid) {
|