Explorar el 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 hace 4 años
padre
commit
45d059cd92
Se han modificado 1 ficheros con 1 adiciones y 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,
 		opts,
 	)
 	)
 
 
-	if response.StatusCode == 404 {
+	if response != nil && response.StatusCode == 404 {
 		return nil
 		return nil
 	}
 	}