Просмотр исходного кода

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

Add nil pointer check for Github actions delete file call
abelanger5 4 лет назад
Родитель
Сommit
45d059cd92
1 измененных файлов с 1 добавлено и 1 удалено
  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
 	}