Use 'var' instead of explicit type

(cherry picked from commit 12374f7f0038e5b25548f5ab3f71122410832393)

Closes #3749
This commit is contained in:
Bogdan 2023-05-23 13:52:39 +03:00
parent 14816306a4
commit cc27107668
113 changed files with 274 additions and 274 deletions

View file

@ -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);
}

View file

@ -12,7 +12,7 @@ namespace ServiceUninstall
private static bool IsAnAdministrator()
{
WindowsPrincipal principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
var principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
return principal.IsInRole(WindowsBuiltInRole.Administrator);
}