Remove needless return value on error

The method behaves as a destructive method. So return value of the
method is meaningless.