Skip to content

Commit

Permalink
Fix crash in case of commits without file change
Browse files Browse the repository at this point in the history
  • Loading branch information
peti2001 committed Jun 30, 2022
1 parent 4ad738c commit a045c89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extractor/extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,10 @@ func (r *RepoExtractor) commitWorker(w int, jobs <-chan *req, results chan<- []*
fmt.Println("Cannot convert the following into integer: " + deletionsString)
return err
}

// If there is no filechange at all
if len(bits) <= 2 {
continue
}
fileName := bits[2]
// it is a rename, skip
if strings.Contains("=>", fileName) {
Expand Down

0 comments on commit a045c89

Please sign in to comment.