summaryrefslogtreecommitdiff
path: root/src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryModel.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-02-11 00:49:49 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-02-11 00:49:49 -0500
commit4da9e954df3846d01aa0536f4e8143466a1d62f3 (patch)
treeac4f969399b844f2c0bee0204b0b3a3c4d83e91d /src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryModel.cs
parent233a7d57e6b138dcbd651bb9bc5d0a0c66b207bb (diff)
downloadSMAPI-4da9e954df3846d01aa0536f4e8143466a1d62f3.tar.gz
SMAPI-4da9e954df3846d01aa0536f4e8143466a1d62f3.tar.bz2
SMAPI-4da9e954df3846d01aa0536f4e8143466a1d62f3.zip
use Array.Empty to avoid unneeded array allocations
Diffstat (limited to 'src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryModel.cs')
-rw-r--r--src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryModel.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryModel.cs b/src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryModel.cs
index 2f58a3f1..0115fbf3 100644
--- a/src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryModel.cs
+++ b/src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryModel.cs
@@ -1,3 +1,5 @@
+using System;
+
namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi
{
/// <summary>Metadata about a mod.</summary>
@@ -16,6 +18,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi
public ModExtendedMetadataModel Metadata { get; set; }
/// <summary>The errors that occurred while fetching update data.</summary>
- public string[] Errors { get; set; } = new string[0];
+ public string[] Errors { get; set; } = Array.Empty<string>();
}
}