From b4760da1b4f6c3eb0f9df99f5914baa272215ec2 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 9 Feb 2021 08:47:03 -0600 Subject: fix warnings --- src/slskd/Program.cs | 51 ++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 11 deletions(-) (limited to 'src/slskd/Program.cs') diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 7c6736a3..2f75c2a0 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -1,5 +1,29 @@ -namespace slskd +// +// Copyright (c) slskd Team. All rights reserved. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see https://www.gnu.org/licenses/. +// + +namespace slskd { + using System; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Reflection; + using System.Security.Cryptography.X509Certificates; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; @@ -12,13 +36,6 @@ using slskd.Common.Cryptography; using slskd.Configuration; using slskd.Validation; - using System; - using System.Collections.Generic; - using System.IO; - using System.Linq; - using System.Net; - using System.Reflection; - using System.Security.Cryptography.X509Certificates; public static class ProgramExtensions { @@ -90,9 +107,21 @@ if (ShowHelp || ShowEnvironmentVariables) { - if (!NoLogo) PrintLogo(Version); - if (ShowHelp) PrintCommandLineArguments(Options.Map); - if (ShowEnvironmentVariables) PrintEnvironmentVariables(Options.Map, EnvironmentVariablePrefix); + if (!NoLogo) + { + PrintLogo(Version); + } + + if (ShowHelp) + { + PrintCommandLineArguments(Options.Map); + } + + if (ShowEnvironmentVariables) + { + PrintEnvironmentVariables(Options.Map, EnvironmentVariablePrefix); + } + return; } -- cgit v1.2.3