fix whitespaces

This commit is contained in:
kaso17 2017-12-04 13:37:00 +01:00
parent 2934bfb3e7
commit eee8d1d8ff
1 changed files with 36 additions and 38 deletions

View File

@ -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);
}
}
}
// 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;
}
}
}