Skip to content

Commit

Permalink
Rename leftover local variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Nov 20, 2024
1 parent 80ce9c3 commit 4b39266
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lombiq.Tests.UI.Shortcuts/Services/TimeShiftingClock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public DateTimeOffset ConvertToTimeZone(DateTimeOffset dateTimeOffset, ITimeZone
/// </returns>
public static double? UpdateClock(IClock clock, Func<TimeSpan, TimeSpan> edit)
{
if (clock is not TimeShiftingClock shiftTimeClock) return null;
if (clock is not TimeShiftingClock timeShiftingClock) return null;

shiftTimeClock.Shift = edit(shiftTimeClock.Shift);
return shiftTimeClock.Shift.TotalSeconds;
timeShiftingClock.Shift = edit(timeShiftingClock.Shift);
return timeShiftingClock.Shift.TotalSeconds;
}
}

0 comments on commit 4b39266

Please sign in to comment.