Skip to content

Commit

Permalink
Merge pull request #10493 from ArcturusZhang/minor-fix-for-sdk
Browse files Browse the repository at this point in the history
Minor tweak for SDK: return nil instead of return err
  • Loading branch information
tombuildsstuff authored Feb 8, 2021
2 parents a143404 + b940159 commit ad40027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/internal/sdk/wrapper_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (rw *ResourceWrapper) Resource() (*schema.Resource, error) {
return fmt.Errorf(out)
}

return err
return nil
}, func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
if v, ok := rw.resource.(ResourceWithCustomImporter); ok {
ctx, metaData := runArgs(d, meta, rw.logger)
Expand Down

0 comments on commit ad40027

Please sign in to comment.