box / boxcli

A command line interface for interacting with the Box API.
https://developer.box.com
Apache License 2.0
222 stars 59 forks source link

fix: Fix delete token cache from disk #445

Closed congminh1254 closed 1 year ago

congminh1254 commented 1 year ago

In function unlinkAsync in file /src/util.js, we are calling function fs.unlink( path, callback ), but options param was provided, then this error raised when clear token:

Callback must be a function. Received {}

So we need to remove options param to make it works.

coveralls commented 1 year ago

Coverage Status

Coverage: 86.341%. Remained the same when pulling 395017c3caafffc18d6703eee3821e6f2bdd97e8 on fix-token-clean-cache into e006ddcb78b9bf24574aee3c55e18fb431fc737e on main.