1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-24 22:36:19 -04:00

Inline 'out' variable declarations

This commit is contained in:
Bogdan
2023-05-23 13:48:37 +03:00
committed by Mark McDowall
parent 909f2ded6b
commit 281add47de
45 changed files with 81 additions and 185 deletions
@@ -81,9 +81,7 @@ namespace NzbDrone.Core.MediaFiles
private bool ChangeFileDateToLocalAirDate(string filePath, string fileDate, string fileTime)
{
DateTime airDate;
if (DateTime.TryParse(fileDate + ' ' + fileTime, out airDate))
if (DateTime.TryParse(fileDate + ' ' + fileTime, out var airDate))
{
// avoiding false +ve checks and set date skewing by not using UTC (Windows)
DateTime oldDateTime = _diskProvider.FileGetLastWrite(filePath);