Skip to content

Commit 48322a0

Browse files
authored
Fix type check on list of map (#1084)
1 parent 8f38587 commit 48322a0

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

src/Result/BatchGetItemOutput.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,7 @@ private function populateResultItemList(array $json): array
191191
{
192192
$items = [];
193193
foreach ($json as $item) {
194-
$a = empty($item) ? [] : $this->populateResultAttributeMap($item);
195-
if (null !== $a) {
196-
$items[] = $a;
197-
}
194+
$items[] = $this->populateResultAttributeMap($item);
198195
}
199196

200197
return $items;

src/Result/QueryOutput.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ private function populateResultItemList(array $json): array
182182
{
183183
$items = [];
184184
foreach ($json as $item) {
185-
$a = empty($item) ? [] : $this->populateResultAttributeMap($item);
186-
if (null !== $a) {
187-
$items[] = $a;
188-
}
185+
$items[] = $this->populateResultAttributeMap($item);
189186
}
190187

191188
return $items;

src/Result/ScanOutput.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ private function populateResultItemList(array $json): array
182182
{
183183
$items = [];
184184
foreach ($json as $item) {
185-
$a = empty($item) ? [] : $this->populateResultAttributeMap($item);
186-
if (null !== $a) {
187-
$items[] = $a;
188-
}
185+
$items[] = $this->populateResultAttributeMap($item);
189186
}
190187

191188
return $items;

0 commit comments

Comments
 (0)