You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
First pass at linting lib dir
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
class ModelCache {
|
||||
|
||||
constructor(maxSize) {
|
||||
this.cache_ = [];
|
||||
this.maxSize_ = maxSize;
|
||||
@ -8,7 +7,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;
|
||||
}
|
||||
@ -33,7 +32,6 @@ class ModelCache {
|
||||
this.cache(ModelClass, id, output);
|
||||
return output;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = ModelCache;
|
||||
module.exports = ModelCache;
|
||||
|
Reference in New Issue
Block a user