Skip to content

Commit

Permalink
Remove 'Async' term from a synchronous method (#14710)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkech authored Nov 17, 2023
1 parent 2dfbe5b commit 0e2726a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private async Task UpdateRolesForEnabledFeatureAsync(IFeatureInfo feature)
updated = true;

missingFeatures.Remove(feature.Id);
UpdateRoleAsync(role, providers, _logger);
UpdateRolesForEnabledFeature(role, providers, _logger);
}

if (updated)
Expand Down Expand Up @@ -175,7 +175,7 @@ private async Task RemoveRoleForMissingFeaturesAsync(string roleName)
}
}

private static bool UpdateRoleAsync(Role role, IEnumerable<IPermissionProvider> providers, ILogger logger)
private static bool UpdateRolesForEnabledFeature(Role role, IEnumerable<IPermissionProvider> providers, ILogger logger)
{
var stereotypes = providers
.SelectMany(provider => provider.GetDefaultStereotypes())
Expand Down

0 comments on commit 0e2726a

Please sign in to comment.