mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Changed all Single<T> to SingleOrDefault<T>
This commit is contained in:
parent
7d1f0d2c08
commit
a771d2cfa9
4 changed files with 6 additions and 6 deletions
|
@ -54,7 +54,7 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
public virtual IndexerSetting GetSettings(Type type)
|
||||
{
|
||||
return _database.Single<IndexerSetting>("WHERE IndexProviderType = @0", type.ToString());
|
||||
return _database.SingleOrDefault<IndexerSetting>("WHERE IndexProviderType = @0", type.ToString());
|
||||
}
|
||||
|
||||
public virtual void InitializeIndexers(IList<IndexerBase> indexers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue