Updated acceptableFileExtensions to be a frozenSet

Removed more boxing
This commit is contained in:
Chomp
2025-07-07 13:31:39 +01:00
parent 9470855b50
commit 7bda1b525f
6 changed files with 29 additions and 24 deletions
@@ -1,3 +1,4 @@
using System.Collections.Frozen;
using SPTarkov.DI.Annotations;
using SPTarkov.Server.Core.Models.Enums;
using SPTarkov.Server.Core.Models.Spt.Config;
@@ -10,7 +11,7 @@ namespace SPTarkov.Server.Core.Servers;
[Injectable(InjectionType.Singleton)]
public class ConfigServer
{
protected readonly string[] acceptableFileExtensions = ["json", "jsonc"];
protected readonly FrozenSet<string> acceptableFileExtensions = ["json", "jsonc"];
protected readonly FileUtil _fileUtil;
protected readonly JsonUtil _jsonUtil;
protected readonly ISptLogger<ConfigServer> _logger;