Skip to content

Commit 75d9836

Browse files
committed
Remove additionDeletion code for commit history file list
1 parent ffb83f4 commit 75d9836

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/renderer/components/commit/commitHistoryItem.vue

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -78,25 +78,6 @@ export default {
7878
]);
7979
try {
8080
let output = files.split("\n");
81-
let additionDeletion = output[output.length - 2].split(", ");
82-
additionDeletion.shift();
83-
let addition;
84-
let deletion;
85-
86-
for (let i = 0; i < additionDeletion.length; i++) {
87-
let commitMetaType = additionDeletion[i].slice(
88-
additionDeletion[i].length - 2,
89-
additionDeletion[i].length - 1
90-
);
91-
let additionDeletionNumber = additionDeletion[i].split(" ");
92-
if (commitMetaType === "+") {
93-
addition = additionDeletionNumber[0];
94-
}
95-
if (commitMetaType === "-") {
96-
deletion = additionDeletionNumber[0];
97-
}
98-
}
99-
10081
this.files.list = output.slice(1, output.length - 2);
10182
} catch (error) {
10283
Sentry.captureException(error);

0 commit comments

Comments
 (0)