Skip to content

Commit

Permalink
Ignore CS0162 on portable build
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Mar 30, 2024
1 parent a2c05bd commit cda7102
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Guard.Package/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Name="TimoKssler.2FAGuard"
Publisher="CN=F9CCA312-A05F-45A0-B7A8-E28C9DA26188"
ProcessorArchitecture="x64"
Version="1.1.0.0" />
Version="1.2.0.0" />

<Properties>
<DisplayName>2FAGuard</DisplayName>
Expand Down
4 changes: 4 additions & 0 deletions Guard/Core/Installation/InstallationInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ internal static bool IsPortable()
#if PORTABLE
return true;
#endif
#pragma warning disable IDE0079 // Unnötige Unterdrückung entfernen
#pragma warning disable CS0162
return false;
#pragma warning restore CS0162
#pragma warning restore IDE0079
}

internal static InstallationType GetInstallationType()
Expand Down

0 comments on commit cda7102

Please sign in to comment.