Skip to content

Commit e11d067

Browse files
committed
_lazyHttpWebSocket is not null
1 parent 1de5766 commit e11d067

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GraphQL.Client/GraphQLHttpClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ protected virtual void Dispose(bool disposing)
188188
Debug.WriteLine($"Disposing GraphQLHttpClient on endpoint {Options.EndPoint}");
189189
_cancellationTokenSource.Cancel();
190190
HttpClient.Dispose();
191-
if ( (bool)(_lazyHttpWebSocket?.IsValueCreated) )
192-
_lazyHttpWebSocket?.Value.Dispose();
191+
if ( _lazyHttpWebSocket.IsValueCreated )
192+
_lazyHttpWebSocket.Value.Dispose();
193193
_cancellationTokenSource.Dispose();
194194
}
195195
}

0 commit comments

Comments
 (0)