From 8e29458bdf3f591b40578b38245fa5c3007bc542 Mon Sep 17 00:00:00 2001 From: Keith Gaughan Date: Fri, 2 Dec 2022 13:52:06 +0000 Subject: [PATCH] Remove unnecessary check --- internal/utils/xml.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/utils/xml.go b/internal/utils/xml.go index de26bb6..a45db8a 100644 --- a/internal/utils/xml.go +++ b/internal/utils/xml.go @@ -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) }