Skip to content

Commit

Permalink
Merge pull request #1527 from AArnott/fix1523
Browse files Browse the repository at this point in the history
Fix null param check in `StaticCompositeResolver`
  • Loading branch information
AArnott authored Nov 19, 2022
2 parents 5a138c4 + 93f938d commit aeb74e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace MessagePack.Resolvers
{
/// <summary>
/// Singleton version of CompositeResolver, which be able to register a collection of formatters and resolvers to a single instance.
/// Singleton version of <see cref="CompositeResolver"/>, which can register a collection of formatters and resolvers to a single instance.
/// </summary>
public class StaticCompositeResolver : IFormatterResolver
{
Expand Down Expand Up @@ -40,7 +40,7 @@ public void Register(params IMessagePackFormatter[] formatters)
throw new InvalidOperationException("Register must call on startup(before use GetFormatter<T>).");
}

if (this.formatters is null)
if (formatters is null)
{
throw new ArgumentNullException(nameof(formatters));
}
Expand Down

0 comments on commit aeb74e5

Please sign in to comment.