Skip to content

Commit

Permalink
Excluded the Process environment variables from variable retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
WillCallahan committed Jan 18, 2022
1 parent ab8cf7f commit 11d6026
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Profile.id/TrayIconController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,6 @@ private static string GetActiveProfileTooltip(EnvironmentVariableTarget? target,

private static (EnvironmentVariableTarget?, string) GetActiveProfile()
{
var processProfileName = Environment.GetEnvironmentVariable(AwsProfileEnvironmentVariable, EnvironmentVariableTarget.Process);
if (!string.IsNullOrEmpty(processProfileName))
{
return (EnvironmentVariableTarget.Process, processProfileName);
}

var userProfileName = Environment.GetEnvironmentVariable(AwsProfileEnvironmentVariable, EnvironmentVariableTarget.User);
if (!string.IsNullOrEmpty(userProfileName))
{
Expand Down

0 comments on commit 11d6026

Please sign in to comment.