Merge pull request #202 from SvanBoxel/buffer-to-string

Buffer to string
This commit is contained in:
marocchino 2020-11-09 09:26:55 +09:00 committed by GitHub
commit 9740b9a8b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ function run() {
}
let body;
if (path) {
body = fs_1.readFileSync(path);
body = fs_1.readFileSync(path, 'utf-8');
}
else {
body = message;

View file

@ -35,7 +35,7 @@ async function run() {
let body;
if (path) {
body = readFileSync(path);
body = readFileSync(path, 'utf-8');
} else {
body = message;
}