Skip to content

Commit 4c939b2

Browse files
committed
remove error check code
1 parent 39a2266 commit 4c939b2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Qiniu/Zone.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ public function getIoHost($ak, $bucket)
4343
{
4444
list($bucketHosts,) = $this->getBucketHosts($ak, $bucket);
4545
$ioHosts = $bucketHosts['ioHost'];
46-
if (count($ioHosts) === 0) {
47-
return "";
48-
}
49-
5046
return $ioHosts[0];
5147
}
5248

0 commit comments

Comments
 (0)