Skip to content

Fix warning when subdivision dataset is null or empty when requesting…#228

Open
io-mark wants to merge 1 commit intocommerceguys:mainfrom
io-mark:main
Open

Fix warning when subdivision dataset is null or empty when requesting…#228
io-mark wants to merge 1 commit intocommerceguys:mainfrom
io-mark:main

Conversation

@io-mark
Copy link

@io-mark io-mark commented Apr 28, 2025

… an illegal combination of parents

@milanbombschliip
Copy link

Why do you return an empty array instead of the original $definitions? I don't understand the code enough to say which one would be better, but my intuition would go for $definitions instead of [].

@ideb
Copy link

ideb commented Feb 12, 2026

The method name is somewhat poorly named as it returns mapped subdivisions. An empty array is the correct return value here

@bojanz
Copy link
Contributor

bojanz commented Feb 13, 2026

This PR needs a test that will confirm the existence of the bug (and the fix).

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.

4 participants