Skip to content

Commit 195ac36

Browse files
authored
Merge pull request #146 from basho/features/lrb/gh-144_CLIENTS-1069
Remove listing operation case statements.
2 parents 4221663 + 7390ae8 commit 195ac36

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Riak/Api/Http.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,19 +200,13 @@ protected function buildPath()
200200
$key = $location->getKey();
201201
}
202202
switch (get_class($this->command)) {
203-
case 'Basho\Riak\Command\Bucket\List':
204-
$this->path = sprintf('/types/%s/buckets/%s', $bucket->getType(), $bucket->getName());
205-
break;
206203
/** @noinspection PhpMissingBreakStatementInspection */
207204
case 'Basho\Riak\Command\Bucket\Store':
208205
$this->headers[static::CONTENT_TYPE_KEY] = static::CONTENT_TYPE_JSON;
209206
case 'Basho\Riak\Command\Bucket\Fetch':
210207
case 'Basho\Riak\Command\Bucket\Delete':
211208
$this->path = sprintf('/types/%s/buckets/%s/props', $bucket->getType(), $bucket->getName());
212209
break;
213-
case 'Basho\Riak\Command\Bucket\Keys':
214-
$this->path = sprintf('/types/%s/buckets/%s/keys', $bucket->getType(), $bucket->getName());
215-
break;
216210
/** @noinspection PhpMissingBreakStatementInspection */
217211
case 'Basho\Riak\Command\Object\Fetch':
218212
$this->headers['Accept'] = '*/*, multipart/mixed';

0 commit comments

Comments
 (0)