Skip to content

Commit

Permalink
Remove extra whitespace causing build failure (#1411)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricJohnson327 committed Aug 15, 2023
1 parent a3bbb60 commit c4b7fb8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Services/AppInfoService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@
// Licensed under the MIT license.

using System.Reflection;
using System.Security.Principal;
using System.Security.Principal;
using DevHome.Common.Helpers;
using DevHome.Common.Services;
using DevHome.Helpers;
using Windows.ApplicationModel;

namespace DevHome.Services;
public class AppInfoService : IAppInfoService
{
private static bool RunningAsAdmin
{
get
{
using var identity = WindowsIdentity.GetCurrent();
var principal = new WindowsPrincipal(identity);
return principal.IsInRole(WindowsBuiltInRole.Administrator);
}
}
{
private static bool RunningAsAdmin
{
get
{
using var identity = WindowsIdentity.GetCurrent();
var principal = new WindowsPrincipal(identity);
return principal.IsInRole(WindowsBuiltInRole.Administrator);
}
}

public string GetAppNameLocalized()
{
#if CANARY_BUILD
return RunningAsAdmin ? "AppDisplayNameCanaryAdministrator".GetLocalized() : "AppDisplayNameCanary".GetLocalized();
#elif STABLE_BUILD
return RunningAsAdmin ? "AppDisplayNameStableAdministrator".GetLocalized() : "AppDisplayNameStable".GetLocalized();
return RunningAsAdmin ? "AppDisplayNameStableAdministrator".GetLocalized() : "AppDisplayNameStable".GetLocalized();
#else
return RunningAsAdmin ? "AppDisplayNameDevAdministrator".GetLocalized() : "AppDisplayNameDev".GetLocalized();
#endif
Expand Down

0 comments on commit c4b7fb8

Please sign in to comment.