When I open a sketch file, sometimes some of the shape layers confused me:
It looks like it's closed, but in fact it is not. If I choose the layer and hit 'edit', the panel on the right shows its not finished and not closed. But then I do nothing, and just exit the edit mode, it closed itself automaticly. When I enter edit mode next time, it becomes a closed path like what it should be for the first time.
I log the layer.bezierPath() to see the path info, the first time it's not closed, and after the 'edit and exit', it becomes a closed path.
and for example, check out @Alexis Doreau's work:
and see the Flickr icon
I don't know why this happened, is there any way to close the should-be-closed path via script?