Removed redundant `throw` and unused return type.