Skip to content

Commit

Permalink
fix: Allow state to be used even with partial errors (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamg authored Aug 16, 2022
1 parent db4834d commit ec7154d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions internal/adapters/cloud/adapt.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ import (

// Adapt ...
func Adapt(ctx context.Context, opt options.Options) (*state.State, error) {

cloudState := &state.State{}
if err := aws.Adapt(ctx, cloudState, opt); err != nil {
return nil, err
}

return cloudState, nil
err := aws.Adapt(ctx, cloudState, opt)
return cloudState, err
}

0 comments on commit ec7154d

Please sign in to comment.