Skip to content

Commit 499ac41

Browse files
authored
fix(to-array-buffer): cosmetic change
1 parent 350325d commit 499ac41

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/to-array-buffer.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
module.exports = function (base64Data) {
44
var isBrowser = typeof window !== 'undefined' && typeof window.atob === 'function'
5-
var binary = isBrowser ?
6-
window.atob(base64Data) :
7-
new Buffer(base64Data, 'base64').toString('binary')
8-
var bytes = new Uint8Array(binary.length)
5+
var binary = isBrowser ? window.atob(base64Data) : new Buffer(base64Data, 'base64').toString('binary')
6+
var bytes = new Uint8Array(binary.length)
97

108
for (var i = 0; i < binary.length; ++i) {
119
bytes[i] = binary.charCodeAt(i)

0 commit comments

Comments
 (0)