Fix support for deprecated author fields
Should add an author if either name or email is specified.
This commit is contained in:
parent
3e0905345c
commit
5f95a9e88b
2
app.go
2
app.go
@ -81,7 +81,7 @@ func NewApp() *App {
|
||||
|
||||
// Entry point to the cli app. Parses the arguments slice and routes to the proper flag/args combination
|
||||
func (a *App) Run(arguments []string) (err error) {
|
||||
if a.Author != "" && a.Author != "" {
|
||||
if a.Author != "" || a.Email != "" {
|
||||
a.Authors = append(a.Authors, Author{a.Author, a.Email})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user