Merge polyline after offset

Ethan, I already gave this solution here but Mister The Great Saiya Man was not happy with that