Remove unnecessary whitespace and dispose HttpClient

An unnecessary whitespace line was removed from the AutoTranslate.cs file to improve code readability. Additionally, the HttpClient in the AutoTranslate.Designer.cs file was disposed to free up system resources and prevent potential memory leaks.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
This commit is contained in:
Ivandro Jao 2024-06-20 19:17:05 +01:00
parent 1b6ec6d9f2
commit be16964b95
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,8 @@
{
components.Dispose();
}
_httpClient.Dispose();
base.Dispose(disposing);
}

View File

@ -1455,7 +1455,6 @@ namespace Nikse.SubtitleEdit.Forms.Translate
await DownloadOllamaModelsAsync();
}
private async Task DownloadOllamaModelsAsync()
{
try