Skip to content

Commit

Permalink
Editorial: Remove If in SystemTimeZoneIdentifier (#3104)
Browse files Browse the repository at this point in the history
Removes an unnecessary line in SystemTimeZoneIdentifier.

Originally this AO contained an assert that applied to named time zones
but not offset time zones. Based on editors' feedback in #3035, this
assertion was replaced with different text, making the remaining If
statement unnecessary. But I didn't notice this until after #3035 was
merged.

This commit removes the now-unnecessary If statement.
  • Loading branch information
justingrant authored and ljharb committed Jun 21, 2023
1 parent 2e2cba5 commit f609768
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -32343,7 +32343,6 @@ <h1>SystemTimeZoneIdentifier ( ): a String</h1>
<emu-alg>
1. If the implementation only supports the UTC time zone, return *"UTC"*.
1. Let _systemTimeZoneString_ be the String representing the host environment's current time zone, either a primary time zone identifier or an offset time zone identifier.
1. If IsTimeZoneOffsetString(_systemTimeZoneString_) is *true*, return _systemTimeZoneString_.
1. Return _systemTimeZoneString_.
</emu-alg>

Expand Down

0 comments on commit f609768

Please sign in to comment.