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/routes/api/v1/repo/log.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/server/src/routes/api/v1/repo') diff --git a/packages/server/src/routes/api/v1/repo/log.ts b/packages/server/src/routes/api/v1/repo/log.ts index 5ba4044..b05487b 100644 --- a/packages/server/src/routes/api/v1/repo/log.ts +++ b/packages/server/src/routes/api/v1/repo/log.ts @@ -21,14 +21,14 @@ async function commitMap(commit: Commit) { }; } -async function patchMap(patch: Patch, index: number) { +async function patchMap(patch: Patch) { return { additions: patch.additions, deletions: patch.deletions, from: patch.from, to: patch.to, - too_large: await patch.isTooLarge(index), - hunks: await patch.getHunks(index) + too_large: await patch.isTooLarge(), + hunks: await patch.getHunks() }; } -- cgit v1.2.3-18-g5258