From 9d7ab3443303892fecd96d461be81b57e65f68eb Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 11 Feb 2022 21:40:59 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Ext.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 16c51d24..be4bfe36 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -1921,10 +1921,10 @@ namespace WebSocketSharp /// public static Uri ToUri (this string value) { + var kind = value.MaybeUri () ? UriKind.Absolute : UriKind.Relative; Uri ret; - Uri.TryCreate ( - value, value.MaybeUri () ? UriKind.Absolute : UriKind.Relative, out ret - ); + + Uri.TryCreate (value, kind, out ret); return ret; }