mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Fix possible nullref
This commit is contained in:
@ -175,7 +175,7 @@ namespace osu.Desktop.Updater
|
|||||||
|
|
||||||
public SquirrelLogger()
|
public SquirrelLogger()
|
||||||
{
|
{
|
||||||
var file = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), "SquirrelSetupUpdater.log");
|
var file = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location ?? Directory.GetCurrentDirectory()), "SquirrelSetupUpdater.log");
|
||||||
if (File.Exists(file)) File.Delete(file);
|
if (File.Exists(file)) File.Delete(file);
|
||||||
path = file;
|
path = file;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user