Merge pull request #773 from teresy/redundant-nil-check-slice
Remove redundant nil checks
This commit is contained in:
commit
1169906f57
6
help.go
6
help.go
@ -240,10 +240,8 @@ func printHelpCustom(out io.Writer, templ string, data interface{}, customFunc m
|
|||||||
funcMap := template.FuncMap{
|
funcMap := template.FuncMap{
|
||||||
"join": strings.Join,
|
"join": strings.Join,
|
||||||
}
|
}
|
||||||
if customFunc != nil {
|
for key, value := range customFunc {
|
||||||
for key, value := range customFunc {
|
funcMap[key] = value
|
||||||
funcMap[key] = value
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
w := tabwriter.NewWriter(out, 1, 8, 2, ' ', 0)
|
w := tabwriter.NewWriter(out, 1, 8, 2, ' ', 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user