From 5f95a9e88b7bb61d461c453041f546d0f195692b Mon Sep 17 00:00:00 2001 From: jszwedko Date: Tue, 10 Mar 2015 07:59:59 -0700 Subject: [PATCH] Fix support for deprecated author fields Should add an author if either name or email is specified. --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index 3e7d5a6..cd0d058 100644 --- a/app.go +++ b/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}) }