Browse Source

add nil check for deletefile call

Alexander Belanger 4 năm trước cách đây
mục cha
commit
9f4ff261d7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 	}