summaryrefslogtreecommitdiff
path: root/src/SMAPI/Utilities/KeybindList.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-20 01:02:49 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-20 01:02:49 -0500
commit587d60495e01b1bdacc31acc7e15a87d7f441839 (patch)
treedf43368ad1308fc7a3f2f290d4f08f2349775795 /src/SMAPI/Utilities/KeybindList.cs
parente40483aab1f6dbcb89f3a1fd1639fc732fe987fc (diff)
downloadSMAPI-587d60495e01b1bdacc31acc7e15a87d7f441839.tar.gz
SMAPI-587d60495e01b1bdacc31acc7e15a87d7f441839.tar.bz2
SMAPI-587d60495e01b1bdacc31acc7e15a87d7f441839.zip
add unit tests for KeybindList (#744)
Diffstat (limited to 'src/SMAPI/Utilities/KeybindList.cs')
-rw-r--r--src/SMAPI/Utilities/KeybindList.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Utilities/KeybindList.cs b/src/SMAPI/Utilities/KeybindList.cs
index 4ae66ab7..1845285a 100644
--- a/src/SMAPI/Utilities/KeybindList.cs
+++ b/src/SMAPI/Utilities/KeybindList.cs
@@ -72,7 +72,7 @@ namespace StardewModdingAPI.Utilities
if (rawErrors.Any())
{
parsed = null;
- errors = rawErrors.ToArray();
+ errors = rawErrors.Distinct().ToArray();
return false;
}
else