Fix warning: Type cast is redundant (#2149)

This commit is contained in:
KonH
2021-10-03 11:05:18 +07:00
parent d45fcdd5af
commit 6cbfdea4c0
7 changed files with 8 additions and 8 deletions

View File

@@ -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()