Skip to content

chore(common): cleanup optionals in ldml keyboard reader#15865

Open
mcdurdin wants to merge 1 commit intomasterfrom
chore/common/cleanup-optionals-for-ldml-reader
Open

chore(common): cleanup optionals in ldml keyboard reader#15865
mcdurdin wants to merge 1 commit intomasterfrom
chore/common/cleanup-optionals-for-ldml-reader

Conversation

@mcdurdin
Copy link
Copy Markdown
Member

boxArrays had some optional chaining that was either not needed, and/or was used in an inappropriate context, for example within the iterable argument to a for statement, which would have caused an "not iterable" error if it ever actually resolved to undefined.

This should have no material impact on the code, but helps to clarify code readability.

I uncovered this while reviewing #12564.

Test-bot: skip

`boxArrays` had some optional chaining that was either not needed,
and/or was used in an inappropriate context, for example within the
iterable argument to a `for` statement, which would have caused an "not
iterable" error if it ever actually resolved to `undefined`.

This should have no material impact on the code, but helps to clarify
code readability.

Test-bot: skip
@keymanapp-test-bot
Copy link
Copy Markdown

keymanapp-test-bot Bot commented Apr 22, 2026

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

  • Developer
    • Keyman Developer - build : all tests passed (no artifacts on BuildLevel "build")
    • Compiler Regression Tests - build : all tests passed (no artifacts on BuildLevel "build")
    • Keyman Developer (old PRs) - build : all tests passed (no artifacts on BuildLevel "build")
    • kmcomp.zip - build : all tests passed (no artifacts on BuildLevel "build")
    • kmcomp.zip (old PRs) - build : all tests passed (no artifacts on BuildLevel "build")
  • Keyboards
    • Test Keyboards - build : all tests passed (no artifacts on BuildLevel "build")

Copy link
Copy Markdown
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

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

lgtm

@keyman-server keyman-server modified the milestones: A19S27, A19S28 Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants