Removed redundant `throw` and unused return value.