summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Web/Controllers
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-25 21:11:48 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-25 21:11:48 -0400
commit5cb183e16ddc661c38f4bd9e6e740b9457b8c437 (patch)
tree7c4ed899a45d7960b727b76318b9b36f9e52fbe5 /src/StardewModdingAPI.Web/Controllers
parent4fd3fdc0d8367fdf0c454a1c728113c282df76b7 (diff)
downloadSMAPI-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.cs6
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;
}
}