From 76ef4ff63c7e71cae64122767d1350f71eecb915 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sat, 2 Jan 2021 20:10:46 -0500 Subject: [PATCH] Clean up the build --- src/Tgstation.Server.Host/Program.cs | 4 +--- src/Tgstation.Server.Host/Swarm/SwarmService.cs | 2 +- .../Components/Repository/TestRepositoryFactory.cs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Tgstation.Server.Host/Program.cs b/src/Tgstation.Server.Host/Program.cs index ab0b58943d..fa83a096a9 100644 --- a/src/Tgstation.Server.Host/Program.cs +++ b/src/Tgstation.Server.Host/Program.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; @@ -14,7 +14,6 @@ namespace Tgstation.Server.Host /// static class Program { -#pragma warning disable SA1401 // Fields must be private /// /// The expected host watchdog . /// @@ -24,7 +23,6 @@ namespace Tgstation.Server.Host /// The to use. /// internal static IServerFactory ServerFactory = Application.CreateDefaultServerFactory(); -#pragma warning restore SA1401 // Fields must be private /// /// Entrypoint for the diff --git a/src/Tgstation.Server.Host/Swarm/SwarmService.cs b/src/Tgstation.Server.Host/Swarm/SwarmService.cs index 3cf7efc2b4..d52f3fb2b6 100644 --- a/src/Tgstation.Server.Host/Swarm/SwarmService.cs +++ b/src/Tgstation.Server.Host/Swarm/SwarmService.cs @@ -975,7 +975,7 @@ namespace Tgstation.Server.Host.Swarm var request = new HttpRequestMessage( httpMethod, - swarmServer.Address + subroute.Substring(1)); + swarmServer.Address + subroute[1..]); request.Headers.Add(SwarmConstants.ApiKeyHeader, swarmConfiguration.PrivateKey); request.Headers.UserAgent.Clear(); diff --git a/tests/Tgstation.Server.Host.Tests/Components/Repository/TestRepositoryFactory.cs b/tests/Tgstation.Server.Host.Tests/Components/Repository/TestRepositoryFactory.cs index 43b4c66124..a57e899721 100644 --- a/tests/Tgstation.Server.Host.Tests/Components/Repository/TestRepositoryFactory.cs +++ b/tests/Tgstation.Server.Host.Tests/Components/Repository/TestRepositoryFactory.cs @@ -28,7 +28,7 @@ namespace Tgstation.Server.Host.Components.Repository.Tests [TestMethod] public void TestInMemoryRepoCreation() { - new LibGit2RepositoryFactory(Mock.Of>()).CreateInMemory().Dispose(); + new LibGit2RepositoryFactory(Mock.Of>()).CreateInMemory(); } [TestMethod]