File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/Files.App/Services/Windows Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ public unsafe bool IsAppElevated()
11
11
{
12
12
var identity = System . Security . Principal . WindowsIdentity . GetCurrent ( ) ;
13
13
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 ) ;
16
15
}
17
16
18
17
/// <inheritdoc/>
@@ -27,7 +26,6 @@ public bool IsElevationRequired(string path)
27
26
if ( string . IsNullOrEmpty ( path ) )
28
27
return false ;
29
28
30
- // TODO: Use PInvoke partial class in a separate project
31
29
return Win32PInvoke . IsElevationRequired ( path ) ;
32
30
}
33
31
}
You can’t perform that action at this time.
0 commit comments