Commit 6568f37
committed
indexer: remove useless local variable
The `processed` variable local to `git_indexer_append` counts how many
objects have already been processed. But actually, whenever it gets
assigned to, we are also assigning the same value to the
`stats->indexed_objects` struct member. So in fact, it is being quite
useless due to always having the same value as the `indexer_objects`
member and makes it a bit harder to understand the code. We can just
remove the variable to fix that.1 parent ca4db5f commit 6568f37
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
532 | 531 | | |
533 | 532 | | |
534 | 533 | | |
535 | 534 | | |
536 | 535 | | |
537 | | - | |
538 | | - | |
539 | 536 | | |
540 | 537 | | |
541 | 538 | | |
| |||
578 | 575 | | |
579 | 576 | | |
580 | 577 | | |
581 | | - | |
| 578 | + | |
582 | 579 | | |
583 | 580 | | |
584 | 581 | | |
| |||
590 | 587 | | |
591 | 588 | | |
592 | 589 | | |
593 | | - | |
| 590 | + | |
594 | 591 | | |
595 | 592 | | |
596 | 593 | | |
| |||
665 | 662 | | |
666 | 663 | | |
667 | 664 | | |
668 | | - | |
| 665 | + | |
669 | 666 | | |
670 | 667 | | |
671 | 668 | | |
| |||
0 commit comments