Skip to content

Commit c0ac0f9

Browse files
committed
ipfs-inactive#124 Rename function parameter so it doesn't collide with function name (in Safari)
1 parent 934e869 commit c0ac0f9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/api/id.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict'
22

33
module.exports = send => {
4-
return function id (id, cb) {
5-
if (typeof id === 'function') {
6-
cb = id
7-
id = null
4+
return function id (idParam, cb) {
5+
if (typeof idParam === 'function') {
6+
cb = idParam
7+
idParam = null
88
}
9-
return send('id', id, null, null, cb)
9+
return send('id', idParam, null, null, cb)
1010
}
1111
}

0 commit comments

Comments
 (0)