Explorar o código

Merge pull request #1882 from porter-dev/belanger/fix-nil-on-delete-file

Add nil pointer check for Github actions delete file call
abelanger5 %!s(int64=4) %!d(string=hai) anos
pai
achega
45d059cd92
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/integrations/ci/actions/actions.go

+ 1 - 1
internal/integrations/ci/actions/actions.go

@@ -480,7 +480,7 @@ func deleteGithubFile(
 		opts,
 	)
 
-	if response.StatusCode == 404 {
+	if response != nil && response.StatusCode == 404 {
 		return nil
 	}