aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/Security
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-03-31 12:45:15 -0400
committerLuke <luke.pulverenti@gmail.com>2016-03-31 12:45:15 -0400
commit4f6c50244b9547601e4a2da891090e4a9fd5cb23 (patch)
tree30252268405738fc3d01b45ee99330093efc79df /MediaBrowser.Common.Implementations/Security
parent0be3fdc062ab218ba5702f065b4bee565850c402 (diff)
parente61014aa881c0720a9b3a3f9bddab702ddd44671 (diff)
Merge pull request #1613 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Common.Implementations/Security')
-rw-r--r--MediaBrowser.Common.Implementations/Security/MBLicenseFile.cs4
-rw-r--r--MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs4
2 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Common.Implementations/Security/MBLicenseFile.cs b/MediaBrowser.Common.Implementations/Security/MBLicenseFile.cs
index 79e558794..78515cd14 100644
--- a/MediaBrowser.Common.Implementations/Security/MBLicenseFile.cs
+++ b/MediaBrowser.Common.Implementations/Security/MBLicenseFile.cs
@@ -103,11 +103,11 @@ namespace MediaBrowser.Common.Implementations.Security
}
catch (DirectoryNotFoundException)
{
- (File.Create(licenseFile)).Close();
+ File.Create(licenseFile).Close();
}
catch (FileNotFoundException)
{
- (File.Create(licenseFile)).Close();
+ File.Create(licenseFile).Close();
}
}
if (contents != null && contents.Length > 0)
diff --git a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
index a6dbf77e9..af58c3731 100644
--- a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
+++ b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
@@ -299,7 +299,7 @@ namespace MediaBrowser.Common.Implementations.Security
};
record.TrialVersion = IsInTrial(reg.expDate, record.RegChecked, record.IsRegistered);
- record.IsValid = !record.RegChecked || (record.IsRegistered || record.TrialVersion);
+ record.IsValid = !record.RegChecked || record.IsRegistered || record.TrialVersion;
return record;
}
@@ -314,7 +314,7 @@ namespace MediaBrowser.Common.Implementations.Security
var isInTrial = expirationDate > DateTime.UtcNow;
- return (isInTrial && !isRegistered);
+ return isInTrial && !isRegistered;
}
/// <summary>