Skip to content

Commit ab6339a

Browse files
committed
[Modify] Polish it
1 parent f3829fd commit ab6339a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

websocket-sharp/Net/HttpListenerPrefix.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ private void parse (string uriPrefix)
126126

127127
var len = uriPrefix.Length;
128128
var hostStartIdx = uriPrefix.IndexOf (':') + 3;
129-
var rootIdx = uriPrefix.IndexOf ('/', hostStartIdx + 1, len - hostStartIdx - 1);
129+
130+
var rootIdx = uriPrefix
131+
.IndexOf ('/', hostStartIdx + 1, len - hostStartIdx - 1);
132+
130133
var colonIdx = uriPrefix
131134
.LastIndexOf (':', rootIdx - 1, rootIdx - hostStartIdx - 1);
132135

0 commit comments

Comments
 (0)