aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Security/MBLicenseFile.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/Security/MBLicenseFile.cs')
-rw-r--r--Emby.Server.Implementations/Security/MBLicenseFile.cs11
1 files changed, 4 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/Security/MBLicenseFile.cs b/Emby.Server.Implementations/Security/MBLicenseFile.cs
index fc1c1f0bf..91fbb4a2c 100644
--- a/Emby.Server.Implementations/Security/MBLicenseFile.cs
+++ b/Emby.Server.Implementations/Security/MBLicenseFile.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Globalization;
@@ -68,9 +68,8 @@ namespace Emby.Server.Implementations.Security
public void RemoveRegCheck(string featureId)
{
var key = GetKey(featureId);
- FeatureRegInfo val;
- _updateRecords.TryRemove(key, out val);
+ _updateRecords.TryRemove(key, out var val);
Save();
}
@@ -135,13 +134,11 @@ namespace Emby.Server.Implementations.Security
continue;
}
- Guid feat;
- if (Guid.TryParse(line, out feat))
+ if (Guid.TryParse(line, out var feat))
{
var lineParts = contents[i + 1].Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
- long ticks;
- if (long.TryParse(lineParts[0], out ticks))
+ if (long.TryParse(lineParts[0], out var ticks))
{
var info = new FeatureRegInfo
{