1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-27 23:28:38 +02:00

Revert "Applied prettier to code base"

This reverts commit c4f19465a6.
This commit is contained in:
Laurent Cozic
2018-03-09 20:59:12 +00:00
parent 5e8b09f5af
commit 55c5ddedf4
203 changed files with 7883 additions and 13355 deletions

View File

@ -1,4 +1,5 @@
class ModelCache {
constructor(maxSize) {
this.cache_ = [];
this.maxSize_ = maxSize;
@ -7,7 +8,7 @@ class ModelCache {
fromCache(ModelClass, id) {
for (let i = 0; i < this.cache_.length; i++) {
const c = this.cache_[i];
if (c.id === id && c.modelType === ModelClass.modelType()) return c;
if (c.id === id && c.modelType === ModelClass.modelType()) return c
}
return null;
}
@ -32,6 +33,7 @@ class ModelCache {
this.cache(ModelClass, id, output);
return output;
}
}
module.exports = ModelCache;
module.exports = ModelCache;