From 8e152c2bb62fcae16f7783ba0880aa57596194e7 Mon Sep 17 00:00:00 2001 From: Justin Grant Date: Tue, 20 Jun 2023 23:50:10 -0700 Subject: [PATCH] Editorial: merge early returns in TimeZoneEquals This commit consolidates early returns from TimeZoneEquals, per https://github.com/tc39/proposal-canonical-tz/issues/35#issuecomment-1599484497 --- spec/timezone.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/timezone.html b/spec/timezone.html index c38ee2b8..f0265039 100644 --- a/spec/timezone.html +++ b/spec/timezone.html @@ -150,10 +150,8 @@

1. Let _timeZoneTwo_ be ? ToTemporalTimeZoneIdentifier(_two_). 1. If _timeZoneOne_ is _timeZoneTwo_, return *true*. 1. Let _recordOne_ be GetAvailableNamedTimeZoneIdentifier(_timeZoneOne_). - 1. If _recordOne_ is ~empty~, return *false*. 1. Let _recordTwo_ be GetAvailableNamedTimeZoneIdentifier(_timeZoneTwo_). - 1. If _recordTwo_ is ~empty~, return *false*. - 1. If _recordOne_.[[PrimaryIdentifier]] is _recordTwo_.[[PrimaryIdentifier]], return *true*. + 1. If _recordOne_ is not ~empty~ and _recordTwo_ is not ~empty~ and _recordOne_.[[PrimaryIdentifier]] is _recordTwo_.[[PrimaryIdentifier]], return *true*. 1. Return *false*.