fix lint
Some checks failed
build / test (push) Failing after 18s
build / lint (push) Successful in 16s
codeql / analyze (go) (push) Failing after 1m16s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2024-12-12 11:38:45 +03:00
parent c90ee27de1
commit 9ec19b3806
3 changed files with 23 additions and 7 deletions

View File

@@ -325,6 +325,7 @@ func (c *flagConfig) flagFloat64(v reflect.Value, fn, fv, fd string) error {
return nil
}
/*
func (c *flagConfig) flagStringSlice(v reflect.Value, fn, fv, fd string) error {
nv, ok := v.Addr().Interface().(*string)
if !ok {
@@ -333,6 +334,7 @@ func (c *flagConfig) flagStringSlice(v reflect.Value, fn, fv, fd string) error {
flag.StringVar(nv, fn, fv, fd)
return nil
}
*/
func getFlagOpts(tf string) (string, string, string) {
var name, desc, def string