File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -137,11 +137,14 @@ async function gatewayServiceNeedsAutoNodeExtraCaCertsRefresh(params: {
137137} ) : Promise < boolean > {
138138 try {
139139 const currentCommand = await params . service . readCommand ( params . env ) ;
140- const currentExecPath = currentCommand ?. programArguments [ 0 ] ?. trim ( ) ;
140+ if ( ! currentCommand ) {
141+ return false ;
142+ }
143+ const currentExecPath = currentCommand . programArguments [ 0 ] ?. trim ( ) ;
141144 if ( ! currentExecPath ) {
142145 return false ;
143146 }
144- const currentEnvironment = currentCommand ? .environment ?? { } ;
147+ const currentEnvironment = currentCommand . environment ?? { } ;
145148 const currentNodeExtraCaCerts = currentEnvironment . NODE_EXTRA_CA_CERTS ?. trim ( ) ;
146149 const expectedNodeExtraCaCerts = resolveAutoNodeExtraCaCerts ( {
147150 env : {
You can’t perform that action at this time.
0 commit comments