aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener/Ext.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SocketHttpListener/Ext.cs')
-rw-r--r--SocketHttpListener/Ext.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/SocketHttpListener/Ext.cs b/SocketHttpListener/Ext.cs
index 4404235ba..b051b6718 100644
--- a/SocketHttpListener/Ext.cs
+++ b/SocketHttpListener/Ext.cs
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
-using System.Collections.Specialized;
using System.IO;
using System.IO.Compression;
using System.Net;
@@ -441,7 +440,8 @@ namespace SocketHttpListener
continue;
}
}
- else {
+ else
+ {
}
buffer.Append(c);
@@ -932,9 +932,8 @@ namespace SocketHttpListener
/// </param>
public static Uri ToUri(this string uriString)
{
- Uri res;
return Uri.TryCreate(
- uriString, uriString.MaybeUri() ? UriKind.Absolute : UriKind.Relative, out res)
+ uriString, uriString.MaybeUri() ? UriKind.Absolute : UriKind.Relative, out var res)
? res
: null;
}
@@ -958,4 +957,4 @@ namespace SocketHttpListener
#endregion
}
-} \ No newline at end of file
+}