Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
return error if no patch details
Browse files Browse the repository at this point in the history
  • Loading branch information
owenrumney committed Jan 21, 2022
1 parent 00a96c0 commit 1300224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commenter/commenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func buildComment(file, comment string, line int, info commitFileInfo) *github.P
func getCommitInfo(file *github.CommitFile) (*commitFileInfo, error) {
patch := file.GetPatch()
if patch == "" {
return nil, nil
return nil, fmt.Errorf("ignoring [%s] because it has no patch informations, probably a binary?", *file.Filename)
}

groups := patchRegex.FindAllStringSubmatch(file.GetPatch(), -1)
Expand Down

0 comments on commit 1300224

Please sign in to comment.