Skip to content

Commit

Permalink
Update KVClient.php
Browse files Browse the repository at this point in the history
Removing unnecessary "if()" block
  • Loading branch information
dcarbone authored Jul 22, 2016
1 parent 7582134 commit 33c23d1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/KV/KVClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,6 @@ public function tree($prefix = null, QueryOptions $queryOptions = null)
$slashPos = strpos($path, '/');
if (false === $slashPos)
{
if (null !== $err)
return [null, $err];

$treeHierarchy[$path] = $kvp;
continue;
}
Expand Down Expand Up @@ -341,4 +338,4 @@ public function tree($prefix = null, QueryOptions $queryOptions = null)
}
return [$treeHierarchy, null];
}
}
}

0 comments on commit 33c23d1

Please sign in to comment.