From d5ef69e432ebd3a8253c02ad52fd43b71985c1da Mon Sep 17 00:00:00 2001 From: Matt Weagle Date: Sat, 10 Mar 2018 14:45:02 -0800 Subject: [PATCH] Style change --- template.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/template.go b/template.go index 8d5e081..45ce7c8 100644 --- a/template.go +++ b/template.go @@ -151,8 +151,5 @@ func (r *Resource) UnmarshalJSON(buf []byte) error { if err != nil { return err } - if err := json.Unmarshal(propertiesBuf, r.Properties); err != nil { - return err - } - return nil + return json.Unmarshal(propertiesBuf, r.Properties) }