aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/git/patch.ts
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-06-25 13:51:07 +0200
committerHampusM <hampus@hampusmat.com>2021-06-25 13:51:07 +0200
commitb2e8c2b464919cbd4ff471fcee8d8e63667f8a81 (patch)
tree8a7c99995ab1a68e96c588ac0422e21a222eb470 /packages/server/src/git/patch.ts
parentdf341dc9b874f7e7bf99d9c1de3a84c49c4a04a6 (diff)
Fixed a bug with commit patch's bounds & removed some unnecessary awaits
Diffstat (limited to 'packages/server/src/git/patch.ts')
-rw-r--r--packages/server/src/git/patch.ts4
1 files changed, 2 insertions, 2 deletions
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<PatchBounds> {
- 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<string> {
- 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");