Parcourir la source

add nil check for deletefile call

Alexander Belanger il y a 4 ans
Parent
commit
9f4ff261d7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
 	}
 	}