Fix CA1810

This commit is contained in:
Dominion
2023-04-24 20:46:51 -04:00
parent c94379d700
commit d593026625
@@ -62,7 +62,7 @@ namespace Tgstation.Server.Host.Components.Byond
/// <summary>
/// <see cref="SemaphoreSlim"/> for writing to files in the user's BYOND directory.
/// </summary>
static readonly SemaphoreSlim UserFilesSemaphore;
static readonly SemaphoreSlim UserFilesSemaphore = new (1);
/// <summary>
/// The <see cref="IIOManager"/> for the <see cref="ByondManager"/>.
@@ -99,14 +99,6 @@ namespace Tgstation.Server.Host.Components.Byond
/// </summary>
TaskCompletionSource activeVersionChanged;
/// <summary>
/// Initializes static members of the <see cref="ByondManager"/> class.
/// </summary>
static ByondManager()
{
UserFilesSemaphore = new SemaphoreSlim(1);
}
/// <summary>
/// Validates a given <paramref name="version"/> parameter.
/// </summary>