Skip to content

Commit c9d02b8

Browse files
committed
fix declaration of err shadowing existing err var
1 parent d2dcc52 commit c9d02b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/provider/aws/action/openshift-snc/openshift-snc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ func Create(ctx *maptContext.ContextArgs, args *OpenshiftSNCArgs) error {
105105
func Destroy(ctx *maptContext.ContextArgs) (err error) {
106106
logging.Debug("Run openshift destroy")
107107
// Create mapt Context
108-
if err := maptContext.Init(ctx, aws.Provider()); err != nil {
108+
if err = maptContext.Init(ctx, aws.Provider()); err != nil {
109109
return err
110110
}
111111
// Destroy fedora related resources
112-
if err := aws.DestroyStack(
112+
if err = aws.DestroyStack(
113113
aws.DestroyStackRequest{
114114
Stackname: stackName,
115115
}); err != nil {

0 commit comments

Comments
 (0)