Merge pull request #773 from teresy/redundant-nil-check-slice

Remove redundant nil checks
This commit is contained in:
Audrius Butkevicius 2019-08-03 11:02:34 +01:00 committed by GitHub
commit 1169906f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,10 +240,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)