From 2ca349964f32157cabeec349091c87a79171ac33 Mon Sep 17 00:00:00 2001 From: niciz Date: Fri, 15 Dec 2023 13:54:27 +0100 Subject: [PATCH] Update PasswordExpireService.php remove useless if statement --- src/User/Service/PasswordExpireService.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/User/Service/PasswordExpireService.php b/src/User/Service/PasswordExpireService.php index 7747045..38190e5 100644 --- a/src/User/Service/PasswordExpireService.php +++ b/src/User/Service/PasswordExpireService.php @@ -25,11 +25,9 @@ class PasswordExpireService implements ServiceInterface 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; } }