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:
@@ -141,7 +141,7 @@ export default class OneDriveApi {
|
||||
}
|
||||
|
||||
public async uploadChunk(url: string, handle: any, buffer: any, options: any) {
|
||||
options = Object.assign({}, options);
|
||||
options = { ...options };
|
||||
if (!options.method) { options.method = 'POST'; }
|
||||
|
||||
if (!options.contentLength) throw new Error('uploadChunk: contentLength is missing');
|
||||
|
||||
Reference in New Issue
Block a user