Temporal Helpers: Remove unused variable

We stored Temporal.PlainDateTime.compare in a variable for convenience but
then used Temporal.PlainDate.compare instead. The variable was actually
intended to be used here. No change in functionality.
This commit is contained in:
Philip Chimento 2024-01-17 15:28:05 -08:00 committed by Philip Chimento
parent c877132488
commit 97a2e443e1
1 changed files with 2 additions and 2 deletions

View File

@ -1404,7 +1404,7 @@ var TemporalHelpers = {
* Pacific/Apia time zone.
*/
crossDateLineTimeZone() {
const { compare } = Temporal.PlainDateTime;
const { compare } = Temporal.PlainDate;
const skippedDay = new Temporal.PlainDate(2011, 12, 30);
const transitionEpoch = 1325239200_000_000_000n;
const beforeOffset = new Temporal.TimeZone("-10:00");
@ -1423,7 +1423,7 @@ var TemporalHelpers = {
}
getPossibleInstantsFor(datetime) {
const comparison = Temporal.PlainDate.compare(datetime.toPlainDate(), skippedDay);
const comparison = compare(datetime.toPlainDate(), skippedDay);
if (comparison === 0) {
return [];
}