Fix warnings.

This commit is contained in:
2020-03-12 00:29:37 +00:00
parent 6934ef3de3
commit 78479d1571
3 changed files with 5 additions and 2 deletions

View File

@@ -84,11 +84,11 @@ namespace Aaru.CommonTypes.Interop
var principal = new WindowsPrincipal(user);
isAdmin = principal.IsInRole(WindowsBuiltInRole.Administrator);
}
catch(UnauthorizedAccessException ex)
catch(UnauthorizedAccessException)
{
isAdmin = false;
}
catch(Exception ex)
catch(Exception)
{
isAdmin = false;
}