diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-02-13 00:39:18 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-02-13 00:39:18 +0100 |
| commit | 65bab55ca09b09f5229d6e9d50f9cfccfeb8f3d0 (patch) | |
| tree | 69e2694d284e2040339215d7b1a82cd4e0cd83eb /Emby.Server.Implementations/Data/SqliteExtensions.cs | |
| parent | 76d66e0dee62998a211c4f720e8f2800458d7f23 (diff) | |
Minor improvements
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteExtensions.cs')
| -rw-r--r-- | Emby.Server.Implementations/Data/SqliteExtensions.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteExtensions.cs b/Emby.Server.Implementations/Data/SqliteExtensions.cs index 1af301ceb..a04d63088 100644 --- a/Emby.Server.Implementations/Data/SqliteExtensions.cs +++ b/Emby.Server.Implementations/Data/SqliteExtensions.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Globalization; using SQLitePCL.pretty; @@ -59,7 +60,7 @@ namespace Emby.Server.Implementations.Data connection.RunInTransaction(conn => { - conn.ExecuteAll(string.Join(";", queries)); + conn.ExecuteAll(string.Join(';', queries)); }); } @@ -142,11 +143,10 @@ namespace Emby.Server.Implementations.Data return result[index].ReadGuidFromBlob(); } + [Conditional("DEBUG")] private static void CheckName(string name) { -#if DEBUG throw new ArgumentException("Invalid param name: " + name, nameof(name)); -#endif } public static void TryBind(this IStatement statement, string name, double value) |
