From 21dfc6eb8302c4db3547a22b0843c43e36fe058e Mon Sep 17 00:00:00 2001 From: teresy Date: Wed, 10 Oct 2018 14:54:48 -0400 Subject: [PATCH] Remove redundant nil checks --- help.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/help.go b/help.go index 65874fa..d4c183b 100644 --- a/help.go +++ b/help.go @@ -237,10 +237,8 @@ func printHelpCustom(out io.Writer, templ string, data interface{}, customFunc m funcMap := template.FuncMap{ "join": strings.Join, } - if customFunc != nil { - for key, value := range customFunc { - funcMap[key] = value - } + for key, value := range customFunc { + funcMap[key] = value } w := tabwriter.NewWriter(out, 1, 8, 2, ' ', 0)