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();
|
this.instanceUuid = uuid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line class-methods-use-this
|
||||||
|
destroy() {}
|
||||||
|
|
||||||
// eslint-disable-next-line class-methods-use-this, no-unused-vars
|
// eslint-disable-next-line class-methods-use-this, no-unused-vars
|
||||||
load(buffer) {}
|
load(buffer) {}
|
||||||
|
|
||||||
|
@ -33,6 +36,10 @@ export default class Resource extends decorate(Class) {
|
||||||
return resource;
|
return resource;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static qualifyPath(path) {
|
||||||
|
return join('/', this.root, path);
|
||||||
|
}
|
||||||
|
|
||||||
static async read(uri) {
|
static async read(uri) {
|
||||||
if (cache.has(uri)) {
|
if (cache.has(uri)) {
|
||||||
return cache.get(uri);
|
return cache.get(uri);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user