Skip to content

Commit e54cb48

Browse files
committed
refactor: remove unnecessary if condition
1 parent 39aaf14 commit e54cb48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/UserModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function saveWithEmailIdentity(User $data): void
212212
throw $e;
213213
}
214214

215-
if ($result && $data instanceof User) {
215+
if ($result) {
216216
if ($data->id === null) {
217217
// Insert
218218
/** @var User $user */

0 commit comments

Comments
 (0)