File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -898,22 +898,15 @@ export async function waitForProcessing(
898898 } else if ( options . isUnsuccessfulExecution ) {
899899 // We expect a specific processing error for unsuccessful executions, so
900900 // handle these separately.
901- if ( response ) {
902- handleProcessingResultForUnsuccessfulExecution (
903- response ,
904- status ,
905- logger ,
906- ) ;
907- }
901+ handleProcessingResultForUnsuccessfulExecution (
902+ response ,
903+ status ,
904+ logger ,
905+ ) ;
908906 break ;
909907 } else if ( status === "complete" ) {
910908 break ;
911909 } else if ( status === "failed" ) {
912- if ( ! response ) {
913- throw new Error (
914- "Code Scanning could not process the submitted SARIF file: Unable to retrieve error details." ,
915- ) ;
916- }
917910 const message = `Code Scanning could not process the submitted SARIF file:\n${ response . data . errors } ` ;
918911 const processingErrors = response . data . errors as string [ ] ;
919912 throw shouldConsiderConfigurationError ( processingErrors )
You can’t perform that action at this time.
0 commit comments