@@ -352,7 +352,7 @@ class ProgressTracker {
352352 s . phases . some ( p => p . name === phaseName ) ,
353353 )
354354 if ( similar . length === 0 ) {
355- return null
355+ return undefined
356356 }
357357
358358 // Get median duration for this phase.
@@ -362,7 +362,7 @@ class ProgressTracker {
362362 . sort ( ( a , b ) => a - b )
363363
364364 if ( durations . length === 0 ) {
365- return null
365+ return undefined
366366 }
367367
368368 const median = durations [ Math . floor ( durations . length / 2 ) ]
@@ -758,14 +758,14 @@ ${similarErrors.length > 0 ? `**Similar Past Errors:**\n${similarErrors.map(e =>
758758
759759 if ( result . exitCode !== 0 ) {
760760 log . warn ( 'Analysis failed, proceeding without root cause info' )
761- return null
761+ return undefined
762762 }
763763
764764 // Parse JSON response.
765765 const jsonMatch = result . stdout . match ( / \{ [ \s \S ] * \} / )
766766 if ( ! jsonMatch ) {
767767 log . warn ( 'Could not parse analysis, proceeding without root cause info' )
768- return null
768+ return undefined
769769 }
770770
771771 const analysis = JSON . parse ( jsonMatch [ 0 ] )
@@ -791,7 +791,7 @@ ${similarErrors.length > 0 ? `**Similar Past Errors:**\n${similarErrors.map(e =>
791791 return analysis
792792 } catch ( e ) {
793793 log . warn ( `Analysis error: ${ e . message } ` )
794- return null
794+ return undefined
795795 }
796796}
797797
@@ -2568,7 +2568,7 @@ Provide ONLY the JSON array, nothing else.`
25682568
25692569 if ( result . exitCode !== 0 ) {
25702570 log . failed ( `Failed to scan ${ name } ` )
2571- return null
2571+ return undefined
25722572 }
25732573
25742574 log . done ( `Scanned ${ name } ` )
@@ -2577,7 +2577,7 @@ Provide ONLY the JSON array, nothing else.`
25772577 return JSON . parse ( result . stdout . trim ( ) )
25782578 } catch {
25792579 log . warn ( `Failed to parse scan results for ${ name } ` )
2580- return null
2580+ return undefined
25812581 }
25822582}
25832583
@@ -2846,7 +2846,7 @@ async function runSecurityScan(claudeCmd, options = {}) {
28462846 const tasks = projects . map ( project =>
28472847 scanProjectForIssues ( claudeCmd , project , options )
28482848 . then ( issues => ( { project : project . name , issues } ) )
2849- . catch ( error => ( { project : project . name , issues : null , error } ) ) ,
2849+ . catch ( error => ( { project : project . name , issues : undefined , error } ) ) ,
28502850 )
28512851
28522852 const taskNames = projects . map ( p => p . name )
0 commit comments