Convert functions and properties to expression bodies when able (#7312)

Convert functions and properties to expression bodies when able
This commit is contained in:
Cory
2020-02-25 10:08:03 -06:00
committed by GitHub
parent 2f91d99e19
commit 889a8da4e5
136 changed files with 726 additions and 1512 deletions

View File

@@ -17,15 +17,15 @@ namespace Jackett.Common.Indexers
{
public class ShowRSS : BaseWebIndexer
{
private string SearchAllUrl { get { return SiteLink + "other/all.rss"; } }
private string SearchAllUrl => SiteLink + "other/all.rss";
public override string[] LegacySiteLinks { get; protected set; } = new string[] {
"http://showrss.info/",
};
private new ConfigurationData configData
{
get { return base.configData; }
set { base.configData = value; }
get => base.configData;
set => base.configData = value;
}
public ShowRSS(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps)
@@ -49,18 +49,13 @@ namespace Jackett.Common.Indexers
configData.LoadValuesFromJson(configJson);
var releases = await PerformQuery(new TorznabQuery());
await ConfigureIfOK(string.Empty, releases.Count() > 0, () =>
{
throw new Exception("Could not find releases from this URL");
});
await ConfigureIfOK(string.Empty, releases.Any(),
() => throw new Exception("Could not find releases from this URL"));
return IndexerConfigurationStatus.RequiresTesting;
}
public override Task<byte[]> Download(Uri link)
{
throw new NotImplementedException();
}
public override Task<byte[]> Download(Uri link) => throw new NotImplementedException();
protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query)
{