Skip to content
Myr

refactor: change minUsagePadding from var to const (#2325)

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

authored by SamareshSingh · committed by GitHub · parent 117698a · 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
555 unmodified lines
556 return err557 }558}559560var minUsagePadding = 25560const minUsagePadding = 25561562// UsagePadding return padding for the usage.563func (c *Command) UsagePadding() int {564 if c.parent == nil || minUsagePadding > c.parent.commandsMaxUseLen {
1508 unmodified lines