aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteDisplayPreferencesRepository.cs
diff options
context:
space:
mode:
authorAnthony Lavado <anthonylavado@users.noreply.github.com>2019-03-27 09:53:45 -0400
committerGitHub <noreply@github.com>2019-03-27 09:53:45 -0400
commit524357bfa845e1c01ef280b1d0fc3896b7b9dbaa (patch)
treef5a194260683b1469f6d7ed1e9af644af2756c99 /Emby.Server.Implementations/Data/SqliteDisplayPreferencesRepository.cs
parent31607fbb377c826415dc0f6689ac4189b38c840f (diff)
parent7343e07fe587b4817f5e80b68359d3193674e6ab (diff)
Merge pull request #1157 from Bond-009/smallfix
Simplify/remove/clean code
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteDisplayPreferencesRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/SqliteDisplayPreferencesRepository.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteDisplayPreferencesRepository.cs b/Emby.Server.Implementations/Data/SqliteDisplayPreferencesRepository.cs
index 3d60925da..47552806d 100644
--- a/Emby.Server.Implementations/Data/SqliteDisplayPreferencesRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteDisplayPreferencesRepository.cs
@@ -90,9 +90,10 @@ namespace Emby.Server.Implementations.Data
{
throw new ArgumentNullException(nameof(displayPreferences));
}
+
if (string.IsNullOrEmpty(displayPreferences.Id))
{
- throw new ArgumentNullException(nameof(displayPreferences.Id));
+ throw new ArgumentException("Display preferences has an invalid Id", nameof(displayPreferences));
}
cancellationToken.ThrowIfCancellationRequested();