From 82f5a990f39efa2943432938cf2a4e970b35a384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Kov=C3=A1cs?= Date: Thu, 9 Mar 2023 21:26:56 +0100 Subject: [PATCH] Formatting --- .editorconfig | 2 ++ src/Alma.App/Command/Info/InfoCommand.cs | 9 ++++----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..3551847 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,2 @@ +[*.cs] + diff --git a/src/Alma.App/Command/Info/InfoCommand.cs b/src/Alma.App/Command/Info/InfoCommand.cs index 2aebd81..2ce9c12 100644 --- a/src/Alma.App/Command/Info/InfoCommand.cs +++ b/src/Alma.App/Command/Info/InfoCommand.cs @@ -1,7 +1,6 @@ using Alma.Configuration.Module; using Alma.Configuration.Repository; using Alma.Data; -using Alma.Helper; using Alma.Logging; using Alma.Services; @@ -66,7 +65,7 @@ public class InfoCommand : RepositoryModuleCommandBase } } - async Task ProcessGeneralInfoAsync() + private async Task ProcessGeneralInfoAsync() { _logger.LogInformation("Alma " + _versionService.GetVersion()); _logger.LogInformation(""); @@ -87,7 +86,7 @@ public class InfoCommand : RepositoryModuleCommandBase _logger.LogInformation($"Platform is '{await _osInformation.GetOsIdentifierAsync()}'"); _logger.LogInformation(""); - if (_repositoryConfiguration.Configuration.Repositories is {Count: > 0} repositories) + if (_repositoryConfiguration.Configuration.Repositories is { Count: > 0 } repositories) { _logger.LogInformation("Repositories:"); foreach (var repository in repositories) @@ -107,7 +106,7 @@ public class InfoCommand : RepositoryModuleCommandBase } } - async Task ProcessRepoInfoAsync(string repoName) + private async Task ProcessRepoInfoAsync(string repoName) { var (repoSourceDirectory, _) = GetRepositorySourceAndTargetDirectory(repoName); @@ -213,4 +212,4 @@ public class InfoCommand : RepositoryModuleCommandBase _logger.LogInformation("Has no links."); } } -} \ No newline at end of file +}