Skip to content

Upstream#5

Open
IPECTER wants to merge 9 commits into
AstriaMC:masterfrom
dscalzi:master
Open

Upstream#5
IPECTER wants to merge 9 commits into
AstriaMC:masterfrom
dscalzi:master

Conversation

@IPECTER

@IPECTER IPECTER commented Apr 10, 2025

Copy link
Copy Markdown
Member

No description provided.

JuniorWolfgamingDE and others added 9 commits February 20, 2025 19:29
Microsoft renamed it a while ago, so I changed a few things to keep it up to date.
Changed '!mdl.subModules.length > 0' to 'mdl.subModules.length === 0'.

The original code had a bug due to JavaScript's operator precedence: the '!'
operator binds tighter than '>', so '!mdl.subModules.length' is evaluated
first (producing a boolean), then '> 0' compares that boolean to 0, which
is always truthy. The fix uses '=== 0' to correctly check if the array is empty.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants