diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-22 03:01:40 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-22 03:01:40 -0400 |
commit | 86d4827df211cc28549acb88ee7cb08d6cc4d4aa (patch) | |
tree | cfe021ee92fb8312b12ca83eda8575e4271cf8a6 /src/StardewModdingAPI.Web/Framework/ModRepositories | |
parent | 399b98b36b6111d364702b117fff3c5f21b8783a (diff) | |
download | SMAPI-86d4827df211cc28549acb88ee7cb08d6cc4d4aa.tar.gz SMAPI-86d4827df211cc28549acb88ee7cb08d6cc4d4aa.tar.bz2 SMAPI-86d4827df211cc28549acb88ee7cb08d6cc4d4aa.zip |
simplify input & output format (#336)
Diffstat (limited to 'src/StardewModdingAPI.Web/Framework/ModRepositories')
-rw-r--r-- | src/StardewModdingAPI.Web/Framework/ModRepositories/NexusRepository.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/StardewModdingAPI.Web/Framework/ModRepositories/NexusRepository.cs b/src/StardewModdingAPI.Web/Framework/ModRepositories/NexusRepository.cs index 7e3ce4b6..02c2939a 100644 --- a/src/StardewModdingAPI.Web/Framework/ModRepositories/NexusRepository.cs +++ b/src/StardewModdingAPI.Web/Framework/ModRepositories/NexusRepository.cs @@ -44,12 +44,12 @@ namespace StardewModdingAPI.Web.Framework.ModRepositories .As<NexusResponseModel>(); return response != null - ? new ModInfoModel($"{this.VendorKey}:{id}", response.Name, response.Version, response.Url) - : new ModInfoModel($"{this.VendorKey}:{id}", "Found no mod with this ID."); + ? new ModInfoModel(response.Name, response.Version, response.Url) + : new ModInfoModel("Found no mod with this ID."); } catch (Exception ex) { - return new ModInfoModel($"{this.VendorKey}:{id}", ex.ToString()); + return new ModInfoModel(ex.ToString()); } } |