Skip to content

Commit

Permalink
Editorial: merge early returns in TimeZoneEquals
Browse files Browse the repository at this point in the history
This commit consolidates early returns from TimeZoneEquals, per
#35 (comment)
  • Loading branch information
justingrant committed Jun 21, 2023
1 parent 781a7c7 commit a6a87d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/timezone.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,8 @@ <h1>
1. Let _timeZoneTwo_ be ? ToTemporalTimeZoneIdentifier(_two_).
1. If _timeZoneOne_ is _timeZoneTwo_, return *true*.
1. <ins>Let _recordOne_ be GetAvailableNamedTimeZoneIdentifier(_timeZoneOne_).</ins>
1. <ins>If _recordOne_ is ~empty~, return *false*.</ins>
1. <ins>Let _recordTwo_ be GetAvailableNamedTimeZoneIdentifier(_timeZoneTwo_).</ins>
1. <ins>If _recordTwo_ is ~empty~, return *false*.</ins>
1. <ins>If _recordOne_.[[PrimaryIdentifier]] is _recordTwo_.[[PrimaryIdentifier]], return *true*.</ins>
1. <ins>If _recordOne_ is not ~empty~ and _recordTwo_ is not ~empty~ and _recordOne_.[[PrimaryIdentifier]] is _recordTwo_.[[PrimaryIdentifier]], return *true*.</ins>
1. Return *false*.
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit a6a87d3

Please sign in to comment.