You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/NetMQ/NetMQRuntime.cs
+1-8Lines changed: 1 addition & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -36,14 +36,7 @@ public NetMQRuntime()
36
36
/// </summary>
37
37
publicstaticNetMQRuntimeCurrent
38
38
{
39
-
get
40
-
{
41
-
varresult=s_current.Value;
42
-
if(result==null)
43
-
thrownewInvalidOperationException("NetMQRuntime.Current is not available on this thread. Ensure that a NetMQRuntime has been created.");
44
-
else
45
-
returnresult;
46
-
}
39
+
get=>s_current.Value??thrownewInvalidOperationException("NetMQRuntime.Current is not available on this thread. Ensure that a NetMQRuntime has been created.");
0 commit comments