mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-18 11:34:46 +01:00
Clean up the build
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user