aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/Security
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-03-28 13:09:42 -0400
committerLuke <luke.pulverenti@gmail.com>2016-03-28 13:09:42 -0400
commit7a5c45374933abb5f97e106c9d3a23e464716086 (patch)
tree27e223b72739922b6d968f732f23f5a202917c0c /MediaBrowser.Common.Implementations/Security
parent0ba8ea6a7690b6b3ad5d9e7bb65bfe29e7ceec53 (diff)
parent168587b2a0d1f495a9f85e05b1e518f615b0cfcc (diff)
Merge pull request #1605 from SvenVandenbrande/dev
Remove unused code...
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 79e558794f..78515cd141 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 a6dbf77e98..af58c37315 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>