fix: destroy
This commit is contained in:
parent
215e73d3f1
commit
e45bf84a19
|
@ -22,6 +22,9 @@ export default class Resource extends decorate(Class) {
|
|||
this.instanceUuid = uuid();
|
||||
}
|
||||
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
destroy() {}
|
||||
|
||||
// eslint-disable-next-line class-methods-use-this, no-unused-vars
|
||||
load(buffer) {}
|
||||
|
||||
|
@ -33,6 +36,10 @@ export default class Resource extends decorate(Class) {
|
|||
return resource;
|
||||
}
|
||||
|
||||
static qualifyPath(path) {
|
||||
return join('/', this.root, path);
|
||||
}
|
||||
|
||||
static async read(uri) {
|
||||
if (cache.has(uri)) {
|
||||
return cache.get(uri);
|
||||
|
|
Loading…
Reference in New Issue
Block a user