fix: destroy

This commit is contained in:
cha0s 2021-02-04 16:29:43 -06:00
parent 215e73d3f1
commit e45bf84a19

View File

@ -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);