[go: nahoru, domu]

Skip to content

Commit

Permalink
Use default argument for base64
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoDiaz committed Feb 26, 2019
1 parent 667f3cc commit 9d2c9d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/base64.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ export default {
],
/* eslint-enable comma-spacing */

decode(data, offset) {
offset = typeof(offset) !== 'undefined' ? offset : 0;

decode(data, offset = 0) {
let data_length = data.indexOf('=') - offset;
if (data_length < 0) { data_length = data.length - offset; }

Expand Down

0 comments on commit 9d2c9d1

Please sign in to comment.