Skip to content

Commit

Permalink
Inline variable cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Sep 8, 2023
1 parent d7a70b9 commit a8277b4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public class ExplicitDatePartParser : IPartParser {
if (value.Length == 16)
value += ":00";

DateTimeOffset date;
if (!DateTimeOffset.TryParse(value, out date))
if (!DateTimeOffset.TryParse(value, out var date))
return null;

date = date.ChangeOffset(relativeBaseTime.Offset);
Expand Down

0 comments on commit a8277b4

Please sign in to comment.