1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

Fixed some compile warnings.

This commit is contained in:
Taloth Saldono
2016-02-11 21:49:22 +01:00
parent 91d91bc673
commit e01b2ef25c
14 changed files with 21 additions and 28 deletions
@@ -9,11 +9,13 @@ namespace NzbDrone.Core.Indexers.Exceptions
public IndexerException(IndexerResponse response, string message, params object[] args)
: base(message, args)
{
_indexerResponse = response;
}
public IndexerException(IndexerResponse response, string message)
: base(message)
{
_indexerResponse = response;
}
public IndexerResponse Response
@@ -124,8 +124,6 @@ namespace NzbDrone.Core.Indexers.Newznab
return new ValidationFailure(string.Empty, "Unable to connect to indexer, check the log for more details");
}
return null;
}
}
}
@@ -80,7 +80,7 @@ namespace NzbDrone.Core.Indexers.Newznab
[FieldDefinition(4, Label = "Additional Parameters", HelpText = "Additional Newznab parameters", Advanced = true)]
public string AdditionalParameters { get; set; }
public NzbDroneValidationResult Validate()
public virtual NzbDroneValidationResult Validate()
{
return new NzbDroneValidationResult(Validator.Validate(this));
}
@@ -54,7 +54,7 @@ namespace NzbDrone.Core.Indexers.Torznab
{
private static readonly TorznabSettingsValidator Validator = new TorznabSettingsValidator();
public NzbDroneValidationResult Validate()
public override NzbDroneValidationResult Validate()
{
return new NzbDroneValidationResult(Validator.Validate(this));
}