Skip to content

Commit

Permalink
Add comment to pull request addition.
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Banning committed Jun 20, 2017
1 parent 39c1542 commit 1cda74d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xml.go
Original file line number Diff line number Diff line change
Expand Up @@ -951,8 +951,11 @@ func mapToXmlIndent(doIndent bool, s *string, key string, value interface{}, pp
}
}
return nil

case []string:
// This was added by https://github.com/slotix ... not a type that
// would be encountered if mv generated from NewMapXml, NewMapJson.
// Could be encountered in AnyXml(), so we'll let it stay, though
// it should be merged with case []interface{}, above.
//quick fix for []string type
//[]string should be treated exaclty as []interface{}
if len(value.([]string)) == 0 {
Expand All @@ -976,7 +979,6 @@ func mapToXmlIndent(doIndent bool, s *string, key string, value interface{}, pp
}
}
return nil

case nil:
// terminate the tag
if doIndent {
Expand Down

0 comments on commit 1cda74d

Please sign in to comment.