This return is essential because after this if an error get thrown.

2014-02-20 0:56 GMT+02:00 Dionysis Zindros <notifications@github.com>:

> In models/user.php:
>
> > +        }
> > +
> > +        public function revokePasswordCheck( $passwordToken ) {
> > +            global $config;
> > +
> > +            if ( $passwordToken == $this->forgotpasswordtoken ) {
> > +                if ( empty( $passwordToken ) ) {
> > +                    throw new ForgotPasswordModelInvalidTokenException();
> > +                }
> > +                $datetime = strtotime( $this->forgotpasswordrequestcreated );
> > +                $now = time();
> > +                $period = $now - $datetime;
> > +                if ( $period > $config[ 'forgot_password_exp_time' ] ) {
> > +                    throw new ModelValidationException( 'link_expired' );
> > +                }
> > +                return;
>
> Unneeded return
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dionyziz/endofcodes/pull/46/files#r9887749>
> .
>