Undo line diff type change, it was unnecessary

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-12-29 11:48:05 +01:00
parent 4bb34023c2
commit 5f0d187ecd
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export const lineSign = (line: LineDiff): string => {
};
export enum LineDiffType {
Addition = "insertion",
Addition = "addition",
Context = "context",
Deletion = "deletion",
}
-3
View File
@@ -289,9 +289,6 @@ export class Project implements ProjectInfo {
for (const file of result.diff[kind]) {
for (const hunk of file.diff.hunks) {
for (const line of hunk.lines) {
if (line["type"] === "addition") {
line["type"] = "insertion";
}
if (line["lineNumOld"]) {
line["lineNoOld"] = line["lineNumOld"];
delete line["lineNumOld"];