You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Tools: Implement "prefer-object-spread" eslint rule
This commit is contained in:
@@ -80,11 +80,9 @@ class FileApiDriverOneDrive {
|
||||
}
|
||||
|
||||
async list(path, options = null) {
|
||||
options = Object.assign({}, {
|
||||
context: null,
|
||||
}, options);
|
||||
options = { context: null, ...options };
|
||||
|
||||
let query = Object.assign({}, this.itemFilter_(), { '$top': 1000 });
|
||||
let query = { ...this.itemFilter_(), '$top': 1000 };
|
||||
let url = `${this.makePath_(path)}:/children`;
|
||||
|
||||
if (options.context) {
|
||||
|
||||
Reference in New Issue
Block a user