@@ -244,8 +244,10 @@ public void ReplaceBuiltInConnectorActionsWithHttp(List<string> builtInConnector
244244 /// </remarks>
245245 public void RemoveHttpChunkingConfiguration ( )
246246 {
247- var httpActionsWithChunking = _jObjectWorkflow . SelectTokens ( "$..actions.*" ) . Where ( x => x [ "type" ] . ToString ( ) == "Http" )
248- . Where ( x => x [ "runtimeConfiguration" ] ? [ "contentTransfer" ] ? [ "transferMode" ] . ToString ( ) == "Chunked" ) . Select ( x => x [ "runtimeConfiguration" ] as JObject ) . ToList ( ) ;
247+ var httpActionsWithChunking = _jObjectWorkflow . SelectTokens ( "$..actions.*" )
248+ . Where ( x => x [ "type" ] . ToString ( ) == "Http" )
249+ . Where ( x => x [ "runtimeConfiguration" ] ? [ "contentTransfer" ] ? [ "transferMode" ] . ToString ( ) == "Chunked" )
250+ . Select ( x => x [ "runtimeConfiguration" ] as JObject ) . ToList ( ) ;
249251
250252 if ( httpActionsWithChunking . Count > 0 )
251253 {
@@ -266,7 +268,9 @@ public void RemoveHttpChunkingConfiguration()
266268 /// </summary>
267269 public void ReplaceCallLocalFunctionActionsWithHttp ( )
268270 {
269- var callLocalFunctionActions = _jObjectWorkflow . SelectTokens ( "$..actions.*" ) . Where ( x => x [ "type" ] . ToString ( ) == "InvokeFunction" ) . Select ( x => x as JObject ) . ToList ( ) ;
271+ var callLocalFunctionActions = _jObjectWorkflow . SelectTokens ( "$..actions.*" )
272+ . Where ( x => x [ "type" ] . ToString ( ) == "InvokeFunction" )
273+ . Select ( x => x as JObject ) . ToList ( ) ;
270274
271275 if ( callLocalFunctionActions . Count > 0 )
272276 {
@@ -305,8 +309,10 @@ public void ReplaceCallLocalFunctionActionsWithHttp()
305309 /// </remarks>
306310 public void ReplaceManagedIdentityAuthenticationTypeWithNone ( )
307311 {
308- var httpActionsWithManagedIdentityAuthenticationType = _jObjectWorkflow . SelectTokens ( "$..actions.*" ) . Where ( x => x [ "type" ] . ToString ( ) == "Http" )
309- . Where ( x => x [ "inputs" ] ? [ "authentication" ] ? [ "type" ] . ToString ( ) == "ManagedServiceIdentity" ) . Select ( x => x [ "inputs" ] ? [ "authentication" ] as JObject ) . ToList ( ) ;
312+ var httpActionsWithManagedIdentityAuthenticationType = _jObjectWorkflow . SelectTokens ( "$..actions.*" )
313+ . Where ( x => x [ "type" ] . ToString ( ) == "Http" )
314+ . Where ( x => x [ "inputs" ] ? [ "authentication" ] ? [ "type" ] . ToString ( ) == "ManagedServiceIdentity" )
315+ . Select ( x => x [ "inputs" ] ? [ "authentication" ] as JObject ) . ToList ( ) ;
310316
311317 if ( httpActionsWithManagedIdentityAuthenticationType . Count > 0 )
312318 {
0 commit comments