aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs
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/Updates/InstallationManager.cs
parent0ba8ea6a7690b6b3ad5d9e7bb65bfe29e7ceec53 (diff)
parent168587b2a0d1f495a9f85e05b1e518f615b0cfcc (diff)
Merge pull request #1605 from SvenVandenbrande/dev
Remove unused code...
Diffstat (limited to 'MediaBrowser.Common.Implementations/Updates/InstallationManager.cs')
-rw-r--r--MediaBrowser.Common.Implementations/Updates/InstallationManager.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs b/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs
index 8e0df9005..5c82ccb0e 100644
--- a/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs
+++ b/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs
@@ -1,7 +1,6 @@
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Events;
using MediaBrowser.Common.Implementations.Security;
-using MediaBrowser.Common.IO;
using MediaBrowser.Common.Net;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Common.Progress;
@@ -200,7 +199,7 @@ namespace MediaBrowser.Common.Implementations.Updates
{
var packages = _jsonSerializer.DeserializeFromStream<List<PackageInfo>>(stream).ToList();
- if ((DateTime.UtcNow - _lastPackageUpdateTime) > GetCacheLength())
+ if (DateTime.UtcNow - _lastPackageUpdateTime > GetCacheLength())
{
UpdateCachedPackages(CancellationToken.None, false);
}
@@ -233,7 +232,7 @@ namespace MediaBrowser.Common.Implementations.Updates
try
{
- if ((DateTime.UtcNow - _lastPackageUpdateTime) < GetCacheLength())
+ if (DateTime.UtcNow - _lastPackageUpdateTime < GetCacheLength())
{
return;
}