Skip to content

Commit

Permalink
Remove unnecessary zero-length array allocation in StateTests (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains authored Jul 15, 2024
1 parent a06492e commit 67cf582
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ImperatorToCK3.UnitTests/Imperator/States/StateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using ImperatorToCK3.Imperator.Geography;
using ImperatorToCK3.Imperator.Provinces;
using ImperatorToCK3.Imperator.States;
using System;
using System.Linq;
using Xunit;

Expand All @@ -14,7 +15,7 @@ namespace ImperatorToCK3.UnitTests.Imperator.States;
[CollectionDefinition("Sequential", DisableParallelization = true)]
public class StateTests {
private const string ImperatorRoot = "TestFiles/StateTests";
private static readonly ModFilesystem irModFS = new(ImperatorRoot, new Mod[] { });
private static readonly ModFilesystem irModFS = new(ImperatorRoot, Array.Empty<Mod>());
private static readonly ProvinceCollection provinces = new();
private static readonly AreaCollection areas = new();
private static readonly CountryCollection countries = new() {new Country(69), new Country(70)};
Expand Down

0 comments on commit 67cf582

Please sign in to comment.