Skip to content

Commit 647edb7

Browse files
authored
Merge pull request #85 from dgolovin/i83-new-buffer
fix: stop using new Buffer()
2 parents fe30f58 + 47c5f06 commit 647edb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function fileToBase64(file: string) {
5454
// read binary data
5555
var bitmap = readFileSync(file);
5656
// convert binary data to base64 encoded string
57-
return new Buffer(bitmap).toString('base64');
57+
return bitmap.toString('base64');
5858
}
5959

6060
function parseJwt (token: string) {

0 commit comments

Comments
 (0)