Skip to content

Commit

Permalink
refactor: add foreach braces
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosPavajeau committed Aug 23, 2021
1 parent 18e6487 commit f55f428
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Armory/Users/Application/GenerateJwt/JwtGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ public string Generate(ArmoryUser user, IEnumerable<string> roles)
SecurityAlgorithms.HmacSha256Signature)
};

foreach (var role in roles) tokenDescriptor.Subject.AddClaim(new Claim(ClaimTypes.Role, role));
foreach (var role in roles)
{
tokenDescriptor.Subject.AddClaim(new Claim(ClaimTypes.Role, role));
}

var token = tokenHandler.CreateToken(tokenDescriptor);
return tokenHandler.WriteToken(token);
Expand Down

0 comments on commit f55f428

Please sign in to comment.