From aafb68ae38a8280bd97cf978042a8df5b71b2f52 Mon Sep 17 00:00:00 2001 From: Minh Nguyen Cong Date: Thu, 29 Dec 2022 09:52:28 +0100 Subject: [PATCH] fix: Fix delete token cache from disk (#445) --- src/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.js b/src/util.js index af901413..d6926a23 100644 --- a/src/util.js +++ b/src/util.js @@ -240,9 +240,9 @@ async function readdirAsync(path, options) { }); } -async function unlinkAsync(path, options) { +async function unlinkAsync(path) { return new Promise((resolve, reject) => { - fs.unlink(path, options || {}, (err, result) => { + fs.unlink(path, (err, result) => { if (err) { return reject(err); }