From eee8d1d8ffb12fea33da95074709fd95eb7080c2 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Mon, 4 Dec 2017 13:37:00 +0100 Subject: [PATCH] fix whitespaces --- .../Models/Config/ConsoleOptions.cs | 74 +++++++++---------- 1 file changed, 36 insertions(+), 38 deletions(-) diff --git a/src/Jackett.Common/Models/Config/ConsoleOptions.cs b/src/Jackett.Common/Models/Config/ConsoleOptions.cs index 36e1ae108..3437bf3c1 100644 --- a/src/Jackett.Common/Models/Config/ConsoleOptions.cs +++ b/src/Jackett.Common/Models/Config/ConsoleOptions.cs @@ -72,45 +72,43 @@ namespace Jackett.Common.Models.Config public RuntimeSettings ToRunTimeSettings() { var options = this; - var runtimeSettings = new RuntimeSettings(); - // Logging - if (options.Logging) - runtimeSettings.LogRequests = true; + var runtimeSettings = new RuntimeSettings(); + // Logging + if (options.Logging) + runtimeSettings.LogRequests = true; - // Tracing - if (options.Tracing) - runtimeSettings.TracingEnabled = true; - - if (options.ListenPublic && options.ListenPrivate) - { - Console.WriteLine("You can only use listen private OR listen publicly."); - Engine.Exit(1); - } - - // SSL Fix - runtimeSettings.DoSSLFix = options.SSLFix; - - // Use curl - if (options.Client != null) - runtimeSettings.ClientOverride = options.Client.ToLowerInvariant(); - - // Use Proxy - if (options.ProxyConnection != null) - { - runtimeSettings.ProxyConnection = options.ProxyConnection.ToLowerInvariant(); - } - // Ignore SSL errors on Curl - runtimeSettings.IgnoreSslErrors = options.IgnoreSslErrors; - runtimeSettings.NoRestart = options.NoRestart; - - if (!string.IsNullOrWhiteSpace(options.DataFolder)) - runtimeSettings.CustomDataFolder = options.DataFolder; - - runtimeSettings.PIDFile = options.PIDFile; - - return runtimeSettings; + // Tracing + if (options.Tracing) + runtimeSettings.TracingEnabled = true; + if (options.ListenPublic && options.ListenPrivate) + { + Console.WriteLine("You can only use listen private OR listen publicly."); + Engine.Exit(1); } - } - } \ No newline at end of file + // SSL Fix + runtimeSettings.DoSSLFix = options.SSLFix; + + // Use curl + if (options.Client != null) + runtimeSettings.ClientOverride = options.Client.ToLowerInvariant(); + + // Use Proxy + if (options.ProxyConnection != null) + { + runtimeSettings.ProxyConnection = options.ProxyConnection.ToLowerInvariant(); + } + // Ignore SSL errors on Curl + runtimeSettings.IgnoreSslErrors = options.IgnoreSslErrors; + runtimeSettings.NoRestart = options.NoRestart; + + if (!string.IsNullOrWhiteSpace(options.DataFolder)) + runtimeSettings.CustomDataFolder = options.DataFolder; + + runtimeSettings.PIDFile = options.PIDFile; + + return runtimeSettings; + } + } +} \ No newline at end of file