Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: Remove unnecessary If in SystemTimeZoneIdentifier #3104

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

justingrant
Copy link
Contributor

@justingrant justingrant commented Jun 21, 2023

Originally the SystemTimeZoneIdentifier AO contained an assert that applied to named time zones but not offset time zones. Based on editors' feedback in #3035, this assertion was removed and 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.

justingrant added a commit to tc39/proposal-canonical-tz that referenced this pull request Jun 21, 2023
This commit rebases one line of SystemTimeZoneIdentifier on
tc39/ecma262#3104.
Copy link
Member

@michaelficarra michaelficarra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to introduce systemTimeZoneString anymore, but this is fine.

@michaelficarra michaelficarra added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Jun 21, 2023
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 tc39#3035, this
assertion was replaced with different text, making the remaining If
statement unnecessary. But I didn't notice this until after tc39#3035 was
merged.

This commit removes the now-unnecessary If statement.
@ljharb ljharb force-pushed the system-identifier-redundant-line branch from a84638e to f609768 Compare June 21, 2023 18:11
@ljharb ljharb merged commit f609768 into tc39:main Jun 21, 2023
zhangenming pushed a commit to zhangenming/ecma262 that referenced this pull request Dec 22, 2023
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 tc39#3035, this
assertion was replaced with different text, making the remaining If
statement unnecessary. But I didn't notice this until after tc39#3035 was
merged.

This commit removes the now-unnecessary If statement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Editors believe this PR needs no further reviews, and is ready to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants