more consistent naming
diff --git a/openstack/orchestration/v1/stackresources/results.go b/openstack/orchestration/v1/stackresources/results.go
index 951f144..bd3e29f 100644
--- a/openstack/orchestration/v1/stackresources/results.go
+++ b/openstack/orchestration/v1/stackresources/results.go
@@ -161,8 +161,5 @@
return nil, r.Err
}
template, err := json.MarshalIndent(r.Body, "", " ")
- if err != nil {
- return nil, err
- }
- return template, nil
+ return template, err
}
diff --git a/openstack/orchestration/v1/stacks/results.go b/openstack/orchestration/v1/stacks/results.go
index 5da178e..6b6f3a3 100644
--- a/openstack/orchestration/v1/stacks/results.go
+++ b/openstack/orchestration/v1/stacks/results.go
@@ -176,8 +176,5 @@
// the result of an Abandon operation to an AdoptOpts AdoptStackData field.
func (r AbandonResult) String() (string, error) {
out, err := json.Marshal(r)
- if err != nil {
- return "", err
- }
- return string(out), nil
+ return string(out), err
}