Why is the $end() Function Not Working Despite Following the Pipedream Documentation?

Ah the documentation appears to be out of date: