aboutsummaryrefslogtreecommitdiff
path: root/RSSDP/SsdpDeviceLocator.cs
diff options
context:
space:
mode:
authorKonH <konh@yandex.ru>2021-10-03 11:05:18 +0700
committerKonH <konh@yandex.ru>2021-10-03 11:05:18 +0700
commit6cbfdea4c018a88864f1c7aa8f5b2535a9952b31 (patch)
treebd6b46f8fd86d65fae58adcd763e8c6d083a1b53 /RSSDP/SsdpDeviceLocator.cs
parentd45fcdd5af70dc84d69b4d25a1484d51efa29a0f (diff)
Fix warning: Type cast is redundant (#2149)
Diffstat (limited to 'RSSDP/SsdpDeviceLocator.cs')
-rw-r--r--RSSDP/SsdpDeviceLocator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/RSSDP/SsdpDeviceLocator.cs b/RSSDP/SsdpDeviceLocator.cs
index 188e298e2..3a52b2a3e 100644
--- a/RSSDP/SsdpDeviceLocator.cs
+++ b/RSSDP/SsdpDeviceLocator.cs
@@ -513,7 +513,7 @@ namespace Rssdp.Infrastructure
return TimeSpan.Zero;
}
- return (TimeSpan)(headerValue.MaxAge ?? headerValue.SharedMaxAge ?? TimeSpan.Zero);
+ return headerValue.MaxAge ?? headerValue.SharedMaxAge ?? TimeSpan.Zero;
}
private void RemoveExpiredDevicesFromCache()