Skip to content

Commit 5792ecc

Browse files
committed
Remove redundant str_replace
1 parent a8afc05 commit 5792ecc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CryptAPI/CryptAPI.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,9 @@ private static function _request($coin, $endpoint, $params = [], $assoc = false)
246246
}
247247

248248
if (!empty($coin)) {
249-
$coin = str_replace('_', '/', $coin);
250-
$url = "{$base_url}/{$coin}/{$endpoint}/";
249+
$url = "{$base_url}/{$coin}/{$endpoint}/";
251250
} else {
252-
$url = "{$base_url}/{$endpoint}/";
251+
$url = "{$base_url}/{$endpoint}/";
253252
}
254253

255254
if (!empty($data)) {

0 commit comments

Comments
 (0)