Skip to content

Commit

Permalink
Remove additionDeletion code for commit history file list
Browse files Browse the repository at this point in the history
  • Loading branch information
mittalyashu committed Apr 7, 2019
1 parent ffb83f4 commit 75d9836
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/renderer/components/commit/commitHistoryItem.vue
Expand Up @@ -78,25 +78,6 @@ export default {
]);
try {
let output = files.split("\n");
let additionDeletion = output[output.length - 2].split(", ");
additionDeletion.shift();
let addition;
let deletion;
for (let i = 0; i < additionDeletion.length; i++) {
let commitMetaType = additionDeletion[i].slice(
additionDeletion[i].length - 2,
additionDeletion[i].length - 1
);
let additionDeletionNumber = additionDeletion[i].split(" ");
if (commitMetaType === "+") {
addition = additionDeletionNumber[0];
}
if (commitMetaType === "-") {
deletion = additionDeletionNumber[0];
}
}
this.files.list = output.slice(1, output.length - 2);
} catch (error) {
Sentry.captureException(error);
Expand Down

0 comments on commit 75d9836

Please sign in to comment.