Skip to content

Commit 3c9fb67

Browse files
committed
again
1 parent 3c65bd6 commit 3c9fb67

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Files.App/Services/Windows/WindowsSecurityService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ public unsafe bool IsAppElevated()
1111
{
1212
var identity = System.Security.Principal.WindowsIdentity.GetCurrent();
1313
var principal = new System.Security.Principal.WindowsPrincipal(identity);
14-
var isRunningAsAdmin = principal.IsInRole(System.Security.Principal.WindowsBuiltInRole.Administrator);
15-
return isRunningAsAdmin;
14+
return principal.IsInRole(System.Security.Principal.WindowsBuiltInRole.Administrator);
1615
}
1716

1817
/// <inheritdoc/>
@@ -27,7 +26,6 @@ public bool IsElevationRequired(string path)
2726
if (string.IsNullOrEmpty(path))
2827
return false;
2928

30-
// TODO: Use PInvoke partial class in a separate project
3129
return Win32PInvoke.IsElevationRequired(path);
3230
}
3331
}

0 commit comments

Comments
 (0)