aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/routes/api/v1/repo/log.ts
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-26 23:56:53 +0200
committerHampusM <hampus@hampusmat.com>2021-07-26 23:56:53 +0200
commit09ff261f156a8599d45c1496fe246ded6e035191 (patch)
tree306f79709da372b562eca70d356fa25afcde1f95 /packages/server/src/routes/api/v1/repo/log.ts
parentc575df758b269db8e05c597d5870e948771d4c2b (diff)
Added backend TSDoc/JSDoc comments & refactored a tiny bit
Diffstat (limited to 'packages/server/src/routes/api/v1/repo/log.ts')
-rw-r--r--packages/server/src/routes/api/v1/repo/log.ts6
1 files changed, 3 insertions, 3 deletions
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 <APIPatch>{
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()
};
}