wurstscript / WurstStdlib2

WurstScript Standard Library Version 2
Apache License 2.0
55 stars 53 forks source link

Fix reading empty files #346

Closed rhazarian closed 4 years ago

rhazarian commented 4 years ago

Even an empty ChunkedString has one (empty) chunk, so you should check it's length instead of checking whether it has a chunk.

Frotty commented 4 years ago

iirc i tested this, i suppose this changed due to your changes to ChunkedString. Seems to be the better option anyway though. Thanks 👍