Revert "The assignment to $result is dead and can be removed."

This reverts commit eec12287114a1f43915810273b651d53c025b1fb.
The assignment to $result is dead and can be removed.