From 09ff261f156a8599d45c1496fe246ded6e035191 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 26 Jul 2021 23:56:53 +0200 Subject: Added backend TSDoc/JSDoc comments & refactored a tiny bit --- packages/server/src/git/diff.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/server/src/git/diff.ts') diff --git a/packages/server/src/git/diff.ts b/packages/server/src/git/diff.ts index 6cd38a3..2e88609 100644 --- a/packages/server/src/git/diff.ts +++ b/packages/server/src/git/diff.ts @@ -43,6 +43,6 @@ export class Diff { } public async patches(): Promise { - return (await this._ng_diff.patches()).map(patch => new Patch(this, patch)); + return (await this._ng_diff.patches()).map((patch, index) => new Patch(this, patch, index)); } } \ No newline at end of file -- cgit v1.2.3-18-g5258