Skip to content

Commit

Permalink
Update PasswordExpireService.php
Browse files Browse the repository at this point in the history
remove useless if statement
  • Loading branch information
niciz authored Dec 15, 2023
1 parent 3d8c4c7 commit 2ca3499
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/User/Service/PasswordExpireService.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ public function __construct(User $model)

public function run()
{
if ($this->model->password_changed_at !== null) {
return $this->model->updateAttributes([
'password_changed_at' => null,
]);
}
$this->model->updateAttributes([
'password_changed_at' => null,
]);
return true;
}
}

0 comments on commit 2ca3499

Please sign in to comment.