Skip to content

Commit

Permalink
Fixed early-return bug.
Browse files Browse the repository at this point in the history
Setting properties call seems to throw an error when called with Docker. Removed return should fix this problem.
  • Loading branch information
Ardjan-Aalberts authored and demeyerthom committed Sep 15, 2023
1 parent 78b3b44 commit 8ab4bae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions contentful/resource_contentful_asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,7 @@ func setAssetState(d *schema.ResourceData, m interface{}) (err error) {
err = client.Assets.Unarchive(spaceID, asset)
}

if err := setAssetProperties(d, asset); err != nil {
return err
}
err = setAssetProperties(d, asset)

return err
}
Expand Down

0 comments on commit 8ab4bae

Please sign in to comment.