Skip to content

Commit

Permalink
fix(format): handle undefined file locations
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Aug 28, 2019
1 parent a69ba3c commit 860ac92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/formatters/git-log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ export const createGitLogFormatter: CreateGitLogFormatter = (config) => {
const body = results.reduce((output, result) => {
if (result.messages.length > 0) {
const items = result.messages
.map((message) => {
message.column = message.column || 1;
message.line = message.line || 1;
return message;
})
.map(mergeMessageWith(result))
.map((item) => {
authors.add(item.email);
Expand Down

0 comments on commit 860ac92

Please sign in to comment.