Skip to content

Commit

Permalink
Remove unused opts argument from stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
swansontec committed Jun 9, 2017
1 parent 36386e4 commit 2e5615f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/base16.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export function parse (string, opts) {
return codec.parse(string.toUpperCase(), encoding, opts)
}

export function stringify (data, opts) {
return codec.stringify(data, encoding, opts)
export function stringify (data) {
return codec.stringify(data, encoding)
}
4 changes: 2 additions & 2 deletions src/base32.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export function parse (string, opts) {
return codec.parse(string, encoding, opts)
}

export function stringify (data, opts) {
return codec.stringify(data, encoding, opts)
export function stringify (data) {
return codec.stringify(data, encoding)
}
4 changes: 2 additions & 2 deletions src/base32hex.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export function parse (string, opts) {
return codec.parse(string, encoding, opts)
}

export function stringify (data, opts) {
return codec.stringify(data, encoding, opts)
export function stringify (data) {
return codec.stringify(data, encoding)
}
4 changes: 2 additions & 2 deletions src/base64.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export function parse (string, opts) {
return codec.parse(string, encoding, opts)
}

export function stringify (data, opts) {
return codec.stringify(data, encoding, opts)
export function stringify (data) {
return codec.stringify(data, encoding)
}
4 changes: 2 additions & 2 deletions src/base64url.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export function parse (string, opts) {
return codec.parse(string, encoding, opts)
}

export function stringify (data, opts) {
return codec.stringify(data, encoding, opts)
export function stringify (data) {
return codec.stringify(data, encoding)
}
2 changes: 1 addition & 1 deletion src/codec.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function parse (string, encoding, opts = {}) {
return out
}

export function stringify (data, encoding, opts = {}) {
export function stringify (data, encoding) {
let out = ''

let bits = 0 // Number of bits currently in the buffer
Expand Down

0 comments on commit 2e5615f

Please sign in to comment.