Skip to content

Commit 3348e14

Browse files
Remove unecessary iterator_to_array call
1 parent c9dd746 commit 3348e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Icingadb/Redis/VolatileStateResults.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected function applyRedisUpdates($rows)
123123
if ($this->columns !== null) {
124124
$normalizedColumns = array_map(function ($column) use ($type) {
125125
return preg_replace("/^($type\.state\.|state\.)/", '', $column);
126-
}, iterator_to_array($this->columns));
126+
}, $this->columns);
127127

128128
$stateColumns = array_intersect($normalizedColumns, $columns);
129129
return [$stateColumns, $this->resolver->getBehaviors($state)];

0 commit comments

Comments
 (0)