Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanMarcotte committed Jun 18, 2021
1 parent 032ba8d commit 9accd8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ private static async void ValidateField(EditContext editContext,

private static IValidator GetValidatorForModel(IServiceProvider serviceProvider, object model, bool disableAssemblyScanning, MakeTypeUsingEditContextModelDelegate modelTypeFunc)
{
var modelType = modelTypeFunc.Invoke(model.GetType());
var validatorType = typeof(IValidator<>).MakeGenericType(modelType);
var modelType = modelTypeFunc.Invoke(model.GetType());
var validatorType = typeof(IValidator<>).MakeGenericType(modelType);
if (serviceProvider != null)
{
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Blazored.FluentValidation
{
public class FluentValidationValidator : ComponentBase
{
internal static readonly MakeTypeUsingEditContextModelDelegate ModelTypePassthrough = model => model.GetType();
internal static readonly MakeTypeUsingEditContextModelDelegate ModelTypePassthrough = model => model.GetType();

[Inject] private IServiceProvider ServiceProvider { get; set; }

Expand Down

0 comments on commit 9accd8e

Please sign in to comment.