mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-03 19:15:34 +12:00
ignore unreachable code warnings on autoupdater
This commit is contained in:
parent
5901ffb5de
commit
688857aea9
|
@ -18,6 +18,7 @@ namespace ModAssistant
|
||||||
private static readonly string NewExe = Path.Combine(Path.GetDirectoryName(Utils.ExePath), "ModAssistant.exe");
|
private static readonly string NewExe = Path.Combine(Path.GetDirectoryName(Utils.ExePath), "ModAssistant.exe");
|
||||||
private static readonly string Arguments = App.Arguments;
|
private static readonly string Arguments = App.Arguments;
|
||||||
|
|
||||||
|
#pragma warning disable CS0162 // Unreachable code detected
|
||||||
public static async Task<bool> CheckForUpdate()
|
public static async Task<bool> CheckForUpdate()
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
@ -33,6 +34,7 @@ namespace ModAssistant
|
||||||
|
|
||||||
return (LatestVersion > CurrentVersion);
|
return (LatestVersion > CurrentVersion);
|
||||||
}
|
}
|
||||||
|
#pragma warning restore CS0162 // Unreachable code detected
|
||||||
|
|
||||||
public static async Task Run()
|
public static async Task Run()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue