From 2d7147442bbfd0c613bfe2c6d42c1e8194c3b494 Mon Sep 17 00:00:00 2001 From: Alessandro De Blasis Date: Wed, 19 Jul 2023 19:56:50 +0000 Subject: [PATCH] fix(oauth): updates --- gitea/resource_gitea_oauth_app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/resource_gitea_oauth_app.go b/gitea/resource_gitea_oauth_app.go index 24fac9f..ea6cd0c 100644 --- a/gitea/resource_gitea_oauth_app.go +++ b/gitea/resource_gitea_oauth_app.go @@ -113,7 +113,7 @@ func resourceOauth2AppUpcreate(d *schema.ResourceData, meta interface{}) (err er if d.IsNewResource() { oauth2, _, err = client.CreateOauth2(opts) } else { - oauth2, err := searchOauth2AppByClientId(client, d.Id()) + oauth2, err = searchOauth2AppByClientId(client, d.Id()) if err != nil { return err