Skip to content

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

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

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

Conversation

@io-mark

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

Copy link
Copy Markdown

… an illegal combination of parents

@milanbombschliip

Copy link
Copy Markdown

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

ideb commented Feb 12, 2026

Copy link
Copy Markdown

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

@bojanz

bojanz commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

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