Clean up the build

This commit is contained in:
Jordan Brown
2021-01-02 20:10:46 -05:00
parent fbb76c1291
commit 76ef4ff63c
3 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -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
/// </summary>
static class Program
{
#pragma warning disable SA1401 // Fields must be private
/// <summary>
/// The expected host watchdog <see cref="Version"/>.
/// </summary>
@@ -24,7 +23,6 @@ namespace Tgstation.Server.Host
/// The <see cref="IServerFactory"/> to use.
/// </summary>
internal static IServerFactory ServerFactory = Application.CreateDefaultServerFactory();
#pragma warning restore SA1401 // Fields must be private
/// <summary>
/// Entrypoint for the <see cref="Program"/>
@@ -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();
@@ -28,7 +28,7 @@ namespace Tgstation.Server.Host.Components.Repository.Tests
[TestMethod]
public void TestInMemoryRepoCreation()
{
new LibGit2RepositoryFactory(Mock.Of<ILogger<LibGit2RepositoryFactory>>()).CreateInMemory().Dispose();
new LibGit2RepositoryFactory(Mock.Of<ILogger<LibGit2RepositoryFactory>>()).CreateInMemory();
}
[TestMethod]