From df341dc9b874f7e7bf99d9c1de3a84c49c4a04a6 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 25 Jun 2021 13:21:56 +0200 Subject: Cleaned up the backend --- packages/server/src/git/tree.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/server/src/git/tree.ts') diff --git a/packages/server/src/git/tree.ts b/packages/server/src/git/tree.ts index b9bd142..8697010 100644 --- a/packages/server/src/git/tree.ts +++ b/packages/server/src/git/tree.ts @@ -12,11 +12,11 @@ export class Tree { this._owner = owner; } - entries(): TreeEntry[] { + public entries(): TreeEntry[] { return this._ng_tree.entries().map(entry => new TreeEntry(this._owner, entry)); } - async find(path: string): Promise { + public async find(path: string): Promise { const entry = await this._ng_tree.getEntry(path).catch(err => { if(err.errno === -3) { return null; @@ -31,7 +31,7 @@ export class Tree { return entry.isBlob() ? new Blob(entry) : new Tree(this._owner, await entry.getTree()); } - findExists(path: string): Promise { + public findExists(path: string): Promise { return this._ng_tree.getEntry(path) .then(() => true) .catch(() => false); -- cgit v1.2.3-18-g5258