diff --git a/src/libraries/System.Net.Requests/src/System/Net/WebException.cs b/src/libraries/System.Net.Requests/src/System/Net/WebException.cs index 26940948498de..06f2207308a6b 100644 --- a/src/libraries/System.Net.Requests/src/System/Net/WebException.cs +++ b/src/libraries/System.Net.Requests/src/System/Net/WebException.cs @@ -84,12 +84,9 @@ internal static Exception CreateCompatibleException(Exception exception) } else if (exception is TaskCanceledException) { - - // temp hack to try to diagnose what's going on in CI. return new WebException( SR.net_webstatus_Timeout, - //null, - exception, + null, WebExceptionStatus.Timeout, null); }