Skip to content

Commit 5d1fa73

Browse files
committed
remove dead branch
1 parent a156917 commit 5d1fa73

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Serialize/Serialization.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,7 @@ private function check_include(): void
188188

189189
$assoc = $this->model->$association;
190190

191-
if (null === $assoc) {
192-
unset($this->attributes[$association]);
193-
} elseif (!is_array($assoc)) {
191+
if (!is_array($assoc)) {
194192
$serialized = new $serializer_class($assoc, $options);
195193
$this->attributes[$association] = $serialized->to_a();
196194
} else {

0 commit comments

Comments
 (0)