Skip to content

Commit 4712210

Browse files
committed
[Form] remove useless code in ResizeFormListener
1 parent 9efce86 commit 4712210

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Extension/Core/EventListener/ResizeFormListener.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ public function preSubmit(FormEvent $event)
9696
$form = $event->getForm();
9797
$data = $event->getData();
9898

99-
if (null === $data || '' === $data) {
100-
$data = array();
101-
}
102-
10399
if (!is_array($data) && !($data instanceof \Traversable && $data instanceof \ArrayAccess)) {
104100
$data = array();
105101
}

0 commit comments

Comments
 (0)