Use 'var' instead of explicit type

(cherry picked from commit 12374f7f0038e5b25548f5ab3f71122410832393)

Closes #2559
This commit is contained in:
Bogdan
2023-05-23 13:52:39 +03:00
parent 89dd4d3271
commit d1aff31593
92 changed files with 205 additions and 206 deletions
@@ -12,7 +12,7 @@ namespace ServiceInstall
private static bool IsAnAdministrator()
{
WindowsPrincipal principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
var principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
return principal.IsInRole(WindowsBuiltInRole.Administrator);
}