From b2e8c2b464919cbd4ff471fcee8d8e63667f8a81 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 25 Jun 2021 13:51:07 +0200 Subject: Fixed a bug with commit patch's bounds & removed some unnecessary awaits --- packages/server/src/git/patch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/server/src/git/patch.ts') diff --git a/packages/server/src/git/patch.ts b/packages/server/src/git/patch.ts index 93ef6fa..126b203 100644 --- a/packages/server/src/git/patch.ts +++ b/packages/server/src/git/patch.ts @@ -62,7 +62,7 @@ export class Patch { } private async bounds(index: number): Promise { - const raw_patches = await (await this._diff.rawPatches()).split("\n"); + const raw_patches = (await this._diff.rawPatches()).split("\n"); const patch_header_data = await this._diff.patchHeaderData(); return { @@ -72,7 +72,7 @@ export class Patch { } private async content(index: number): Promise { - const raw_patches = await (await this._diff.rawPatches()).split("\n"); + const raw_patches = (await this._diff.rawPatches()).split("\n"); const bounds = await this.bounds(index); return raw_patches.slice(bounds.start, bounds.end).join("\n"); -- cgit v1.2.3-18-g5258