mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 00:34:37 +02:00
Convert typeof
to nameof
This commit is contained in:
@@ -16,7 +16,7 @@ namespace NzbDrone.Integration.Test.ApiTests
|
|||||||
|
|
||||||
indexers.Should().NotBeEmpty();
|
indexers.Should().NotBeEmpty();
|
||||||
indexers.Should().NotContain(c => string.IsNullOrWhiteSpace(c.Name));
|
indexers.Should().NotContain(c => string.IsNullOrWhiteSpace(c.Name));
|
||||||
indexers.Where(c => c.ConfigContract == typeof(NullConfig).Name).Should().OnlyContain(c => c.Enable);
|
indexers.Where(c => c.ConfigContract == nameof(NullConfig)).Should().OnlyContain(c => c.Enable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -112,7 +112,7 @@ namespace Prowlarr.Api.V1.Commands
|
|||||||
{
|
{
|
||||||
BroadcastResourceChange(ModelAction.Updated, pendingUpdate);
|
BroadcastResourceChange(ModelAction.Updated, pendingUpdate);
|
||||||
|
|
||||||
if (pendingUpdate.Name == typeof(MessagingCleanupCommand).Name.Replace("Command", "") &&
|
if (pendingUpdate.Name == nameof(MessagingCleanupCommand).Replace("Command", "") &&
|
||||||
pendingUpdate.Status == CommandStatus.Completed)
|
pendingUpdate.Status == CommandStatus.Completed)
|
||||||
{
|
{
|
||||||
BroadcastResourceChange(ModelAction.Sync);
|
BroadcastResourceChange(ModelAction.Sync);
|
||||||
|
Reference in New Issue
Block a user