Skip to content

Commit

Permalink
Merge pull request #773 from teresy/redundant-nil-check-slice
Browse files Browse the repository at this point in the history
Remove redundant nil checks
  • Loading branch information
AudriusButkevicius authored Aug 3, 2019
2 parents 07c1638 + 94f4f83 commit 1169906
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions help.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1169906

Please sign in to comment.