diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/server/src/git/diff.ts | 2 | ||||
-rw-r--r-- | packages/server/src/git/patch.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/server/src/git/diff.ts b/packages/server/src/git/diff.ts index e0e112d..6cd38a3 100644 --- a/packages/server/src/git/diff.ts +++ b/packages/server/src/git/diff.ts @@ -19,7 +19,7 @@ export class Diff { } public async patchHeaderData(): Promise<PatchHeaderData> { - const raw_patches = await this.rawPatches(); + const raw_patches = (await this.rawPatches()).split("\n"); const patch_headers = String(await this._ng_diff.toBuf(2)).split("\n"); return patch_headers.reduce((result, line, index) => { 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"); |