From 085f14354dfd549e8f6ff83425f57fd88e79461a Mon Sep 17 00:00:00 2001 From: Serge Smertin <259697+nfx@users.noreply.github.com> Date: Wed, 4 Oct 2023 12:33:08 +0200 Subject: [PATCH] Fixed incorrect error handling that led to panic in `github_repository_environment` --- github/resource_github_repository_environment.go | 1 + 1 file changed, 1 insertion(+) diff --git a/github/resource_github_repository_environment.go b/github/resource_github_repository_environment.go index 18f386ad69..61208227a9 100644 --- a/github/resource_github_repository_environment.go +++ b/github/resource_github_repository_environment.go @@ -129,6 +129,7 @@ func resourceGithubRepositoryEnvironmentRead(d *schema.ResourceData, meta interf return nil } } + return err } d.Set("repository", repoName)