From a3b25f538140a9b23f678d3dee2e34fd5eb5f405 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Thu, 26 Mar 2020 07:58:10 +0100 Subject: [PATCH] fix mutants --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 493e9c7..feb444e 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,7 @@ * @param {string} encoding encoding the string is in * @returns {string} base64 */ -function to_b64 (str, encoding = 'utf-8') { +function to_b64 (str, encoding = '') { const buf = Buffer.from (str, encoding); return buf.toString ('base64'); } @@ -39,7 +39,7 @@ function to_utf8 (str, encoding) { * @param {string} encoding encoding the string is in * @returns {string} hex */ -function to_hex (str, encoding = 'utf-8') { +function to_hex (str, encoding = '') { const buf = Buffer.from (str, encoding); return buf.toString ('hex'); }