From 2400558f1f2edd77df5193820f2f6e1d3c000a91 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Fri, 16 Aug 2019 11:02:10 -0500 Subject: [PATCH] Correctly call lstat() when opts is not passed --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8c7b35c..3083e28 100644 --- a/index.js +++ b/index.js @@ -555,7 +555,7 @@ class RemoteHyperdrive { } lstat (path, opts, cb) { - if (typeof opts === 'function') return this.stat(path, {}, opts) + if (typeof opts === 'function') return this.lstat(path, {}, opts) const req = new rpc.drive.messages.StatRequest() opts = opts || {}