ignore unreachable code warnings on autoupdater

This commit is contained in:
Jack Baron 2020-11-16 14:11:01 +00:00
parent 5901ffb5de
commit 688857aea9
No known key found for this signature in database
GPG key ID: CD10BCEEC646C064

View file

@ -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()
{ {