mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Fixed: Memory leak in Ensure.That
This commit is contained in:
@@ -33,7 +33,7 @@ namespace NzbDrone.Core.Messaging.Commands
|
||||
|
||||
public void PublishCommand<TCommand>(TCommand command) where TCommand : Command
|
||||
{
|
||||
Ensure.That(() => command).IsNotNull();
|
||||
Ensure.That(command, () => command).IsNotNull();
|
||||
|
||||
_logger.Trace("Publishing {0}", command.GetType().Name);
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace NzbDrone.Core.Messaging.Commands
|
||||
|
||||
public Command PublishCommandAsync<TCommand>(TCommand command) where TCommand : Command
|
||||
{
|
||||
Ensure.That(() => command).IsNotNull();
|
||||
Ensure.That(command, () => command).IsNotNull();
|
||||
|
||||
_logger.Trace("Publishing {0}", command.GetType().Name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user