Skip to content

Commit

Permalink
ipfs-inactive#124 Rename function parameter so it doesn't collide wit…
Browse files Browse the repository at this point in the history
…h function name (in Safari)
  • Loading branch information
priecint committed Feb 1, 2016
1 parent 934e869 commit c0ac0f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/api/id.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict'

module.exports = send => {
return function id (id, cb) {
if (typeof id === 'function') {
cb = id
id = null
return function id (idParam, cb) {
if (typeof idParam === 'function') {
cb = idParam
idParam = null
}
return send('id', id, null, null, cb)
return send('id', idParam, null, null, cb)
}
}

0 comments on commit c0ac0f9

Please sign in to comment.