Closed tburko closed 1 year ago
Hmm, unsure. I wouldn't consider it a bug in this case, it's simplistic example code and therefore data to be formatted should never be empty. I see, though, that if this exact code would be used in production (which it really shouldn't) there would be problems.
@MarcoIeni Thoughts on this?
It looks good to me, apart from a small comment
I will merge this. Simonsan, feel free to raise a PR if this doesn't look good to you.
Empty data would have produced invalid output: "["