Skip to content

Commit b2339ec

Browse files
committed
chore: incorporate review feedback
1 parent 8844521 commit b2339ec

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

internal/provider/data_source_oauth_client.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package provider
55

66
import (
77
"context"
8-
"errors"
98
"fmt"
109
"time"
1110

@@ -234,12 +233,6 @@ func (d *dataSourceTFEOAuthClient) Read(ctx context.Context, req datasource.Read
234233
if !config.OAuthClientID.IsNull() {
235234
// Read the OAuth client using its ID
236235
oc, err = d.config.Client.OAuthClients.Read(ctx, id)
237-
if err != nil && errors.Is(err, tfe.ErrResourceNotFound) {
238-
tflog.Debug(ctx, fmt.Sprintf("OAuth client %s no longer exists", id))
239-
resp.State.RemoveResource(ctx)
240-
return
241-
}
242-
243236
if err != nil {
244237
resp.Diagnostics.AddError("Error reading OAuth client", err.Error())
245238
return

0 commit comments

Comments
 (0)