Skip to content

Commit a731381

Browse files
author
mahsa shadi
committed
Rewrite capabilities method using passthrough
1 parent 4b8d614 commit a731381

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/adapters/vfs/system.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ const methods = (core, request) => {
5757
.then(({body}) => body);
5858

5959
return {
60-
capabilities: ({path}, options) => request('capabilities', {
61-
path,
62-
options
63-
}, 'json').then(({body}) => body),
60+
capabilities: passthrough('capabilities'),
6461

6562
readdir: ({path}, options) => request('readdir', {
6663
path,

src/vfs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ const handleDirectoryList = (path, options) => result =>
7373
showHiddenFiles: options.showHiddenFiles !== false,
7474
filter: options.filter
7575
}));
76+
7677
/**
7778
* Get vfs capabilities
7879
*

0 commit comments

Comments
 (0)