mirror of
https://github.com/Readarr/Readarr
synced 2026-02-11 17:23:26 +01:00
Lint Fixes
This commit is contained in:
parent
a061179f6b
commit
fb1643f630
2 changed files with 3 additions and 4 deletions
|
|
@ -110,7 +110,7 @@ public void DownloadReport(RemoteBook remoteBook)
|
|||
bookGrabbedEvent.DownloadId = downloadClientId;
|
||||
}
|
||||
|
||||
_logger.ProgressInfo("Report sent to {0} from indexer {1}. {2}", downloadClient.Definition.Name, remoteAlbum.Release.Indexer, downloadTitle);
|
||||
_logger.ProgressInfo("Report sent to {0} from indexer {1}. {2}", downloadClient.Definition.Name, remoteBook.Release.Indexer, downloadTitle);
|
||||
_eventAggregator.PublishEvent(bookGrabbedEvent);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
|
|
@ -25,7 +25,7 @@ public static IRuleBuilderOptions<T, string> ValidAuthorFolderFormat<T>(this IRu
|
|||
{
|
||||
ruleBuilder.SetValidator(new NotEmptyValidator(null));
|
||||
ruleBuilder.SetValidator(new IllegalCharactersValidator());
|
||||
|
||||
|
||||
return ruleBuilder.SetValidator(new RegularExpressionValidator(FileNameBuilder.AuthorNameRegex)).WithMessage("Must contain Author name");
|
||||
}
|
||||
}
|
||||
|
|
@ -58,7 +58,6 @@ public class IllegalCharactersValidator : PropertyValidator
|
|||
public IllegalCharactersValidator()
|
||||
: base("Contains illegal characters: {InvalidCharacters}")
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected override bool IsValid(PropertyValidatorContext context)
|
||||
|
|
|
|||
Loading…
Reference in a new issue