Skip to content

Commit

Permalink
Minor change to last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Jan 3, 2025
1 parent feaf6d3 commit c4ef19a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (vars Vars) Set(ctx *Context, g *Flag, s string, set bool) error {
if v, err = g.New(ctx); err != nil {
return err
}
if s, ok := v.(interface{ SetSplit(func(string) []string) }); ok && g.Split != "" {
if z, ok := v.(interface{ SetSplit(func(string) []string) }); ok && g.Split != "" {
var f func(string) []string
switch r := []rune(g.Split); len(r) {
case 1:
Expand All @@ -152,7 +152,7 @@ func (vars Vars) Set(ctx *Context, g *Flag, s string, set bool) error {
return strings.Split(s, g.Split)
}
}
s.SetSplit(f)
z.SetSplit(f)
}
}
if err := v.Set(s); err != nil {
Expand Down

0 comments on commit c4ef19a

Please sign in to comment.