Skip to content

Commit 33c23d1

Browse files
authored
Update KVClient.php
Removing unnecessary "if()" block
1 parent 7582134 commit 33c23d1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/KV/KVClient.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,6 @@ public function tree($prefix = null, QueryOptions $queryOptions = null)
289289
$slashPos = strpos($path, '/');
290290
if (false === $slashPos)
291291
{
292-
if (null !== $err)
293-
return [null, $err];
294-
295292
$treeHierarchy[$path] = $kvp;
296293
continue;
297294
}
@@ -341,4 +338,4 @@ public function tree($prefix = null, QueryOptions $queryOptions = null)
341338
}
342339
return [$treeHierarchy, null];
343340
}
344-
}
341+
}

0 commit comments

Comments
 (0)