summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Storage
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/Framework/Storage')
-rw-r--r--src/SMAPI.Web/Framework/Storage/StorageProvider.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Framework/Storage/StorageProvider.cs b/src/SMAPI.Web/Framework/Storage/StorageProvider.cs
index bbb6e06b..e5e71325 100644
--- a/src/SMAPI.Web/Framework/Storage/StorageProvider.cs
+++ b/src/SMAPI.Web/Framework/Storage/StorageProvider.cs
@@ -52,7 +52,8 @@ namespace StardewModdingAPI.Web.Framework.Storage
public async Task<UploadResult> SaveAsync(string title, string content, bool compress = true)
{
// save to PasteBin
- string uploadError;
+ string uploadError = null;
+ if (this.ClientsConfig.PastebinEnableUploads)
{
SavePasteResult result = await this.Pastebin.PostAsync(title, content);
if (result.Success)