Skip to content

Commit

Permalink
Merge pull request #8 from schnittstabil/master
Browse files Browse the repository at this point in the history
This pull request fixes some lint warnings.
  • Loading branch information
beatgammit committed Mar 27, 2014
2 parents 828fa5a + 1966fa2 commit accc1a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions lib/b64.js
Expand Up @@ -7,7 +7,6 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
? Uint8Array
: Array

var ZERO = '0'.charCodeAt(0)
var PLUS = '+'.charCodeAt(0)
var SLASH = '/'.charCodeAt(0)
var NUMBER = '0'.charCodeAt(0)
Expand Down Expand Up @@ -116,6 +115,6 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
return output
}

module.exports.toByteArray = b64ToByteArray
module.exports.fromByteArray = uint8ToBase64
}())
exports.toByteArray = b64ToByteArray
exports.fromByteArray = uint8ToBase64
}(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
5 changes: 2 additions & 3 deletions test/convert.js
Expand Up @@ -10,8 +10,7 @@ var test = require('tape'),
'sup',
'sup?',
'sup?!'
],
res;
];

test('convert to base64 and back', function (t) {
t.plan(checks.length);
Expand Down Expand Up @@ -49,4 +48,4 @@ function map (arr, callback) {
}
}
return res;
}
}

0 comments on commit accc1a5

Please sign in to comment.