From 09b31f0bff7e4f0e23e8ec704b97c310537295c0 Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Wed, 6 Nov 2024 12:33:22 +0100 Subject: [PATCH] minor code formatting + cleanup stuff --- updater-test/utility/Verificator_Tests.cs | 4 ++-- updater/data/DetectedSoftware.cs | 2 +- updater/software/Graphviz.cs | 2 +- updater/software/InnoSetup.cs | 2 +- updater/software/Stellarium.cs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/updater-test/utility/Verificator_Tests.cs b/updater-test/utility/Verificator_Tests.cs index d0196a9d..c78d0cc1 100644 --- a/updater-test/utility/Verificator_Tests.cs +++ b/updater-test/utility/Verificator_Tests.cs @@ -75,9 +75,9 @@ private static string Download(string url) /// /// Downloads a signed MSI file that will be used during the tests. /// - /// + /// [ClassInitialize()] - public static void DownloadExampleFile(TestContext testContext) + public static void DownloadExampleFile(TestContext _) { downloadFileLocation = Download("https://download.documentfoundation.org/libreoffice/stable/24.8.2/win/x86_64/LibreOffice_24.8.2_Win_x86-64_helppack_de.msi"); } diff --git a/updater/data/DetectedSoftware.cs b/updater/data/DetectedSoftware.cs index 69bb5b81..f1264c67 100644 --- a/updater/data/DetectedSoftware.cs +++ b/updater/data/DetectedSoftware.cs @@ -44,7 +44,7 @@ public DetectedSoftware(string dispName = null, string dispVersion = null, /// Checks whether the entry contains some basic information. /// /// Returns true, if at least the name of the software is set. - public bool containsInformation() + public readonly bool containsInformation() { return !string.IsNullOrWhiteSpace(displayName); } diff --git a/updater/software/Graphviz.cs b/updater/software/Graphviz.cs index 436645ab..c92e9abd 100644 --- a/updater/software/Graphviz.cs +++ b/updater/software/Graphviz.cs @@ -30,7 +30,7 @@ namespace updater.software /// /// Handles updates for Graphviz. /// - public class Graphviz: NoPreUpdateProcessSoftware + public class Graphviz : NoPreUpdateProcessSoftware { /// /// NLog.Logger for Graphviz class diff --git a/updater/software/InnoSetup.cs b/updater/software/InnoSetup.cs index 5a230ebc..681b15aa 100644 --- a/updater/software/InnoSetup.cs +++ b/updater/software/InnoSetup.cs @@ -27,7 +27,7 @@ namespace updater.software /// /// Handles update of Inno Setup (Unicode version). /// - public class InnoSetup: AbstractSoftware + public class InnoSetup : AbstractSoftware { /// /// NLog.Logger for InnoSetup class diff --git a/updater/software/Stellarium.cs b/updater/software/Stellarium.cs index cc9805e0..6c98cbe5 100644 --- a/updater/software/Stellarium.cs +++ b/updater/software/Stellarium.cs @@ -26,7 +26,7 @@ namespace updater.software /// /// Handles updates of Stellarium. /// - public class Stellarium: NoPreUpdateProcessSoftware + public class Stellarium : NoPreUpdateProcessSoftware { /// /// NLog.Logger for Stellarium class