Fixes brace style (#248)

This commit is contained in:
Kamron Batman 2020-09-13 21:49:46 -07:00 • committed by GitHub
parent a236617ad9
commit 8149620b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1503 changed files with 28575 additions and 1717 deletions

View file

@ -25,7 +25,10 @@ namespace Server.Misc
public static void Initialize()
{
if (!Enabled) return;
if (!Enabled)
{
return;
}
new StatusPage().Start();
@ -34,7 +37,10 @@ namespace Server.Misc
private static void Listen()
{
if (!HttpListener.IsSupported) return;
if (!HttpListener.IsSupported)
{
return;
}
if (_Listener == null)
{
@ -47,7 +53,10 @@ namespace Server.Misc
_Listener.Start();
}
if (_Listener.IsListening) _Listener.BeginGetContext(ListenerCallback, null);
if (_Listener.IsListening)
{
_Listener.BeginGetContext(ListenerCallback, null);
}
}
private static void ListenerCallback(IAsyncResult result)
@ -90,7 +99,10 @@ namespace Server.Misc
protected override void OnTick()
{
if (!Directory.Exists("web")) Directory.CreateDirectory("web");
if (!Directory.Exists("web"))
{
Directory.CreateDirectory("web");
}
using (var op = new StreamWriter("web/status.html"))
{