Skip to content

Commit

Permalink
Don't print angle brackets for URL/email if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
norwoodj committed Apr 3, 2022
1 parent 381fc93 commit e91c4c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/document/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func getMaintainersTemplate() string {
maintainerBuilder.WriteString("| Name | Email | Url |\n")
maintainerBuilder.WriteString("| ---- | ------ | --- |\n")
maintainerBuilder.WriteString(" {{- range .Maintainers }}")
maintainerBuilder.WriteString("\n| {{ .Name }} | <{{ .Email }}> | <{{ .Url }}> |")
maintainerBuilder.WriteString("\n| {{ .Name }} | {{ if .Email }}<{{ .Email }}>{{ end }} | {{ if .Url }}<{{ .Url }}>{{ end }} |")
maintainerBuilder.WriteString(" {{- end }}")
maintainerBuilder.WriteString("{{ end }}")

Expand Down
1 change: 1 addition & 0 deletions pkg/util/ignore.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func parseIgnoreFilePathToRules(filename string) (*ignore.Rules, error) {
return nil, fmt.Errorf("failed to parse ignore rules from file %s: %s", filename, err)
}

log.Debugf("Found ignore file at %s, using those ignore rules", filename)
return ignoreRules, nil
}

Expand Down

0 comments on commit e91c4c3

Please sign in to comment.