mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Run dotnet format on solution (#7145)
This commit is contained in:
@@ -537,7 +537,7 @@ namespace Jackett.Updater
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
{
|
||||
if (!Directory.Exists(fileDestinationDirectory))
|
||||
{
|
||||
logger.Info("Creating directory " + fileDestinationDirectory);
|
||||
@@ -558,8 +558,8 @@ namespace Jackett.Updater
|
||||
|
||||
private string GetUpdateLocation()
|
||||
{
|
||||
// Use EscapedCodeBase to avoid Uri reserved characters from causing bugs
|
||||
// https://stackoverflow.com/questions/896572
|
||||
// Use EscapedCodeBase to avoid Uri reserved characters from causing bugs
|
||||
// https://stackoverflow.com/questions/896572
|
||||
var location = new Uri(Assembly.GetEntryAssembly().GetName().EscapedCodeBase);
|
||||
// Use LocalPath instead of AbsolutePath to avoid needing to unescape Uri format.
|
||||
return new FileInfo(location.LocalPath).DirectoryName;
|
||||
|
Reference in New Issue
Block a user