Skip to content

Commit 5f1550a

Browse files
committed
chore: fix lint
1 parent 461b2ea commit 5f1550a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

values/registerer.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ func (f RegistererFunc) DurationSlice(name string, value []time.Duration, sep st
782782
// DurationSliceVar defines a slice-style [time.Duration] flag with specified name, default value, and usage string.
783783
// The input strings are split around sep before parsing.
784784
// The argument p points to a [time.Duration] slice variable in which to store the value of the flag.
785-
func (f RegistererFunc) DurationSliceVar(p *[]time.Duration, name string, value []time.Duration, sep string, usage string) {
785+
func (f RegistererFunc) DurationSliceVar(p *[]time.Duration, name string, value []time.Duration, sep string, usage string) { //nolint: golines
786786
*p = value
787787
f(DurationSliceVar(p, sep), name, usage)
788788
}
@@ -862,7 +862,7 @@ func (f RegistererFunc) IPAddrPortListVar(p *[]netip.AddrPort, name string, valu
862862
// IPAddrPortSlice defines a slice-style [netip.AddrPort] flag with specified name, default value, and usage string.
863863
// The input strings are split around sep before parsing.
864864
// The return value is the address of a [netip.AddrPort] slice that stores the values of the flag.
865-
func (f RegistererFunc) IPAddrPortSlice(name string, value []netip.AddrPort, sep string, usage string) *[]netip.AddrPort {
865+
func (f RegistererFunc) IPAddrPortSlice(name string, value []netip.AddrPort, sep string, usage string) *[]netip.AddrPort { //nolint: golines
866866
f(StringerSliceVar(&value, sep, netip.ParseAddrPort), name, usage)
867867
return &value
868868
}
@@ -914,7 +914,7 @@ func (f RegistererFunc) IPPrefixSlice(name string, value []netip.Prefix, sep str
914914
// IPPrefixSliceVar defines a slice-style [netip.Prefix] flag with specified name, default value, and usage string.
915915
// The input strings are split around sep before parsing.
916916
// The argument p points to a [netip.Prefix] slice variable in which to store the value of the flag.
917-
func (f RegistererFunc) IPPrefixSliceVar(p *[]netip.Prefix, name string, value []netip.Prefix, sep string, usage string) {
917+
func (f RegistererFunc) IPPrefixSliceVar(p *[]netip.Prefix, name string, value []netip.Prefix, sep string, usage string) { //nolint: golines
918918
*p = value
919919
f(StringerSliceVar(p, sep, netip.ParsePrefix), name, usage)
920920
}
@@ -958,7 +958,7 @@ func (f RegistererFunc) MailAddrSlice(name string, value []*mail.Address, sep st
958958
// MailAddrSliceVar defines a slice-style [*mail.Address] flag with specified name, default value, and usage string.
959959
// The input strings are split around sep before parsing.
960960
// The argument p points to a [*mail.Address] slice variable in which to store the value of the flag.
961-
func (f RegistererFunc) MailAddrSliceVar(p *[]*mail.Address, name string, value []*mail.Address, sep string, usage string) {
961+
func (f RegistererFunc) MailAddrSliceVar(p *[]*mail.Address, name string, value []*mail.Address, sep string, usage string) { //nolint: golines
962962
*p = value
963963
f(StringerSliceVar(p, sep, mail.ParseAddress), name, usage)
964964
}
@@ -994,7 +994,7 @@ func (f RegistererFunc) TimeListVar(p *[]time.Time, name string, value []time.Ti
994994
// TimeSlice defines a slice-style [time.Time] flag with specified name, default value, layout format and usage string.
995995
// The input strings are split around sep before parsing.
996996
// The return value is the address of a [time.Time] slice that stores the values of the flag.
997-
func (f RegistererFunc) TimeSlice(name string, value []time.Time, sep string, layout string, usage string) *[]time.Time {
997+
func (f RegistererFunc) TimeSlice(name string, value []time.Time, sep string, layout string, usage string) *[]time.Time { //nolint: golines
998998
f(TimeSliceVar(&value, sep, layout), name, usage)
999999
return &value
10001000
}

0 commit comments

Comments
 (0)