diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-25 21:11:48 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-25 21:11:48 -0400 |
commit | 5cb183e16ddc661c38f4bd9e6e740b9457b8c437 (patch) | |
tree | 7c4ed899a45d7960b727b76318b9b36f9e52fbe5 /src/StardewModdingAPI.Web/Controllers | |
parent | 4fd3fdc0d8367fdf0c454a1c728113c282df76b7 (diff) | |
download | SMAPI-5cb183e16ddc661c38f4bd9e6e740b9457b8c437.tar.gz SMAPI-5cb183e16ddc661c38f4bd9e6e740b9457b8c437.tar.bz2 SMAPI-5cb183e16ddc661c38f4bd9e6e740b9457b8c437.zip |
consolidate update fields in manifest & SMAPI config (#336, #361)
Diffstat (limited to 'src/StardewModdingAPI.Web/Controllers')
-rw-r--r-- | src/StardewModdingAPI.Web/Controllers/ModsController.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/StardewModdingAPI.Web/Controllers/ModsController.cs b/src/StardewModdingAPI.Web/Controllers/ModsController.cs index f29de45a..26cdfa31 100644 --- a/src/StardewModdingAPI.Web/Controllers/ModsController.cs +++ b/src/StardewModdingAPI.Web/Controllers/ModsController.cs @@ -81,7 +81,7 @@ namespace StardewModdingAPI.Web.Controllers [HttpGet] public async Task<IDictionary<string, ModInfoModel>> GetAsync(string modKeys) { - string[] modKeysArray = modKeys?.Split(',').Select(p => p.Trim()).ToArray(); + string[] modKeysArray = modKeys?.Split(',').ToArray(); if (modKeysArray == null || !modKeysArray.Any()) return new Dictionary<string, ModInfoModel>(); @@ -154,8 +154,8 @@ namespace StardewModdingAPI.Web.Controllers } // parse - vendorKey = parts[0]; - modID = parts[1]; + vendorKey = parts[0].Trim(); + modID = parts[1].Trim(); return true; } } |