summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Web/Controllers
diff options
context:
space:
mode:
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;
}
}