Skip to content

Commit

Permalink
Update DbInitializer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasbbs authored Mar 13, 2024
1 parent b618c93 commit 7fc4693
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Data/DbInitializer/DbInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ public void Initialize()
}catch (Exception ex)

Check warning on line 27 in Data/DbInitializer/DbInitializer.cs

View workflow job for this annotation

GitHub Actions / build

The variable 'ex' is declared but never used
{}

if (false) {
//!_roleManager.RoleExistsAsync("User").GetAwaiter().GetResult() )
if (!_roleManager.RoleExistsAsync("User").GetAwaiter().GetResult() )
{
_roleManager.CreateAsync(new IdentityRole("User")).GetAwaiter().GetResult();
_roleManager.CreateAsync(new IdentityRole("Admin")).GetAwaiter().GetResult();
Expand Down

0 comments on commit 7fc4693

Please sign in to comment.