Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaughan committed Dec 2, 2022
1 parent c42e73a commit 8e29458
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/utils/xml.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@ func MarshalToFile(filename string, o interface{}) error {
}
encoder := xml.NewEncoder(f)
encoder.Indent("", "\t")
if err := encoder.Encode(o); err != nil {
return err
}
return nil
return encoder.Encode(o)
}

0 comments on commit 8e29458

Please sign in to comment.