summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/ViewModels/JsonValidator
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.Web/ViewModels/JsonValidator
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.Web/ViewModels/JsonValidator')
-rw-r--r--src/SMAPI.Web/ViewModels/JsonValidator/JsonValidatorModel.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/ViewModels/JsonValidator/JsonValidatorModel.cs b/src/SMAPI.Web/ViewModels/JsonValidator/JsonValidatorModel.cs
index 0ea69911..e659b389 100644
--- a/src/SMAPI.Web/ViewModels/JsonValidator/JsonValidatorModel.cs
+++ b/src/SMAPI.Web/ViewModels/JsonValidator/JsonValidatorModel.cs
@@ -26,7 +26,7 @@ namespace StardewModdingAPI.Web.ViewModels.JsonValidator
public string Content { get; set; }
/// <summary>The schema validation errors, if any.</summary>
- public JsonValidatorErrorModel[] Errors { get; set; } = new JsonValidatorErrorModel[0];
+ public JsonValidatorErrorModel[] Errors { get; set; } = Array.Empty<JsonValidatorErrorModel>();
/// <summary>A non-blocking warning while uploading the file.</summary>
public string UploadWarning { get; set; }