File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
dotnet/src/webdriver/DevTools Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ public override async Task ContinueRequest(HttpRequestData requestData)
153153 Url = requestData . Url ,
154154 } ;
155155
156- if ( requestData . Headers != null && requestData . Headers . Count > 0 )
156+ if ( requestData . Headers ? . Count > 0 )
157157 {
158158 List < HeaderEntry > headers = new List < HeaderEntry > ( ) ;
159159 foreach ( KeyValuePair < string , string > headerPair in requestData . Headers )
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ public override async Task ContinueRequest(HttpRequestData requestData)
153153 Url = requestData . Url ,
154154 } ;
155155
156- if ( requestData . Headers != null && requestData . Headers . Count > 0 )
156+ if ( requestData . Headers ? . Count > 0 )
157157 {
158158 List < HeaderEntry > headers = new List < HeaderEntry > ( ) ;
159159 foreach ( KeyValuePair < string , string > headerPair in requestData . Headers )
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ public override async Task ContinueRequest(HttpRequestData requestData)
153153 Url = requestData . Url ,
154154 } ;
155155
156- if ( requestData . Headers != null && requestData . Headers . Count > 0 )
156+ if ( requestData . Headers ? . Count > 0 )
157157 {
158158 List < HeaderEntry > headers = new List < HeaderEntry > ( ) ;
159159 foreach ( KeyValuePair < string , string > headerPair in requestData . Headers )
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ public override async Task ContinueRequest(HttpRequestData requestData)
153153 Url = requestData . Url ,
154154 } ;
155155
156- if ( requestData . Headers != null && requestData . Headers . Count > 0 )
156+ if ( requestData . Headers ? . Count > 0 )
157157 {
158158 List < HeaderEntry > headers = new List < HeaderEntry > ( ) ;
159159 foreach ( KeyValuePair < string , string > headerPair in requestData . Headers )
You can’t perform that action at this time.
0 commit comments