Skip to content
Myr

UsageTemple: remove useless variable assignment

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Eric Paris · committed by Eric Paris · parent 85bb343 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:command.go+1 added-1 removed
246 unmodified lines
247248 if c.HasParent() {249 return c.parent.UsageTemplate()250 } else {251 return `{{ $cmd := . }}Usage:{{if .Runnable}}251 return `Usage:{{if .Runnable}}252 {{.UseLine}}{{if .HasFlags}} [flags]{{end}}{{end}}{{if .HasSubCommands}}253 {{ .CommandPath}} [command]{{end}}{{if gt .Aliases 0}}254255Aliases:
857 unmodified lines