Skip to content

Commit

Permalink
add xml support: requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
boranx committed Dec 2, 2019
1 parent edbb022 commit 5ac19e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parser/xml/xml.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (xml *Parser) Unmarshal(p []byte, v interface{}) error {
}

if err := json.Unmarshal(res.Bytes(), v); err != nil {
return fmt.Errorf("convert xml to dynamic-json: %w", err)
return fmt.Errorf("convert xml to json: %w", err)
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion parser/xml/xml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestIniParser(t *testing.T) {
}

if input == nil {
t.Error("there should be information parsed but its nil")
t.Fatalf("there should be information parsed but its nil")
}

inputMap := input.(map[string]interface{})
Expand Down

0 comments on commit 5ac19e6

Please sign in to comment.