Skip to content

Commit

Permalink
expr constants
Browse files Browse the repository at this point in the history
  • Loading branch information
RangelReale committed Dec 16, 2024
1 parent 1dc86f7 commit 2553075
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions value.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ func (m MapValue) ListValueAdd(name string, value string) {
v, ok := m[name]
if ok {
switch vv := v.(type) {
case string:
m[name] = append([]string{vv}, value)
return
case []string:
// check duplicates
for _, vdup := range vv {
Expand Down

0 comments on commit 2553075

Please sign in to comment.