1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Apply linter config

This commit is contained in:
Laurent Cozic
2019-10-09 21:35:13 +02:00
parent d355169b60
commit a8ae0f8078
37 changed files with 77 additions and 77 deletions

View File

@@ -186,7 +186,7 @@ class OneDriveApi {
let errorResponseText = await response.text();
let errorResponse = null;
try {
errorResponse = JSON.parse(errorResponseText); //await response.json();
errorResponse = JSON.parse(errorResponseText); // await response.json();
} catch (error) {
error.message = `OneDriveApi::exec: Cannot parse JSON error: ${errorResponseText} ${error.message}`;
throw error;
@@ -249,12 +249,12 @@ class OneDriveApi {
let response = await this.exec(method, path, query, data);
let errorResponseText = await response.text();
try {
let output = JSON.parse(errorResponseText); //await response.json();
let output = JSON.parse(errorResponseText); // await response.json();
return output;
} catch (error) {
error.message = `OneDriveApi::execJson: Cannot parse JSON: ${errorResponseText} ${error.message}`;
throw error;
//throw new Error('Cannot parse JSON: ' + text);
// throw new Error('Cannot parse JSON: ' + text);
}
}