Skip to content

Commit

Permalink
Detect length more intelligently
Browse files Browse the repository at this point in the history
  • Loading branch information
Veraticus committed Sep 13, 2022
1 parent 259496d commit 83896c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func stringToMap(str string) map[string]string {
for _, item := range strings.Split(str, ",") {
itemSlice := strings.Split(item, "=")
value := ""
if len(itemSlice) == 0 {
if len(itemSlice) == 1 {
value = ""
} else {
value = itemSlice[1]
Expand Down

0 comments on commit 83896c9

Please sign in to comment.