From 26dadfa1337c66ad0458f32143809a1308d5af46 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 8 Jun 2019 21:43:16 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Ext.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index ef6d7bd6..a8767674 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -1544,7 +1544,10 @@ namespace WebSocketSharp /// public static bool MaybeUri (this string value) { - if (value == null || value.Length == 0) + if (value == null) + return false; + + if (value.Length == 0) return false; var idx = value.IndexOf (':');