mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-22 22:16:13 -04:00
Migrate to FluentValidation 9
This commit is contained in:
committed by
Mark McDowall
parent
dec6e14036
commit
40e54685b9
@@ -9,11 +9,12 @@ namespace NzbDrone.Core.Validation.Paths
|
||||
private readonly ISeriesService _seriesService;
|
||||
|
||||
public SeriesPathValidator(ISeriesService seriesService)
|
||||
: base("Path is already configured for another series")
|
||||
{
|
||||
_seriesService = seriesService;
|
||||
}
|
||||
|
||||
protected override string GetDefaultMessageTemplate() => "Path is already configured for another series";
|
||||
|
||||
protected override bool IsValid(PropertyValidatorContext context)
|
||||
{
|
||||
if (context.PropertyValue == null)
|
||||
|
||||
Reference in New Issue
Block a user