From c29df9c77f7f75684fbae28a88635b5513b45f5b Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 2 Jun 2025 15:17:21 +0200 Subject: [PATCH] Refactor variable name in plugin download logic --- .../Tools/PluginSystem/PluginFactory.Download.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Download.cs b/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Download.cs index 69567ba4..e29e503b 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Download.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Download.cs @@ -18,14 +18,14 @@ public static partial class PluginFactory await using var tempFileStream = File.Create(tempDownloadFile); await response.Content.CopyToAsync(tempFileStream, cancellationToken); - var pluginDirectory = Path.Join(CONFIGURATION_PLUGINS_ROOT, configPlugId.ToString()); - if(Directory.Exists(pluginDirectory)) - Directory.Delete(pluginDirectory, true); + var configDirectory = Path.Join(CONFIGURATION_PLUGINS_ROOT, configPlugId.ToString()); + if(Directory.Exists(configDirectory)) + Directory.Delete(configDirectory, true); - Directory.CreateDirectory(pluginDirectory); - ZipFile.ExtractToDirectory(tempDownloadFile, pluginDirectory); + Directory.CreateDirectory(configDirectory); + ZipFile.ExtractToDirectory(tempDownloadFile, configDirectory); - LOG.LogInformation($"Configuration plugin with ID='{configPlugId}' downloaded and extracted successfully to '{pluginDirectory}'."); + LOG.LogInformation($"Configuration plugin with ID='{configPlugId}' downloaded and extracted successfully to '{configDirectory}'."); } else LOG.LogError($"Failed to download the enterprise configuration plugin. HTTP Status: {response.StatusCode}");