Skip to content

Commit

Permalink
remove error messages from output
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed May 13, 2024
1 parent ee1c9b9 commit d608922
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crossrefxml/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,10 @@ func Write(data commonmeta.Data, account Account) ([]byte, []gojsonschema.Result
func WriteAll(list []commonmeta.Data, account Account) ([]byte, []gojsonschema.ResultError) {
var body Crossref
for _, data := range list {
crossref, err := Convert(data)
if err != nil {
fmt.Println(err)
}
fmt.Print(crossref)
crossref, _ := Convert(data)
// if err != nil {
// fmt.Println(err)
// }
// workaround to handle the different content types
body.Book = append(body.Book, crossref.Book...)
body.Conference = append(body.Conference, crossref.Conference...)
Expand Down

0 comments on commit d608922

Please sign in to comment.