Skip to content

Commit

Permalink
Cleanup warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jscarle committed Nov 1, 2023
1 parent fcf25e7 commit 273a55f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class MediatRServiceConfiguration
/// <summary>
/// Optional filter for types to register. Default value is a function returning true.
/// </summary>
public Func<Type, bool> TypeEvaluator { get; set; } = t => true;
public Func<Type, bool> TypeEvaluator { get; set; } = _ => true;

/// <summary>
/// Mediator implementation type to register. Default is <see cref="Mediator"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Linq;
using MediatR;
using MediatR.Internal;
using MediatR.Pipeline;
Expand Down
2 changes: 1 addition & 1 deletion src/MediatR/Registration/ServiceRegistrar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private static void AddConcretionsThatCouldBeClosed(Type @interface, List<Type>
}
}

internal static bool CouldCloseTo(this Type openConcretion, Type closedInterface)
private static bool CouldCloseTo(this Type openConcretion, Type closedInterface)
{
var openInterface = closedInterface.GetGenericTypeDefinition();
var arguments = closedInterface.GenericTypeArguments;
Expand Down

0 comments on commit 273a55f

Please sign in to comment.