1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-18 23:07:45 +02:00

Tools: Added eslint rule arrow-parens

This commit is contained in:
Laurent Cozic
2020-05-20 17:16:43 +01:00
parent c34f762507
commit 0b6f5581f0
166 changed files with 446 additions and 445 deletions

View File

@ -10,11 +10,11 @@ class DatabaseDriverReactNative {
return new Promise((resolve, reject) => {
SQLite.openDatabase(
{ name: options.name },
db => {
(db) => {
this.db_ = db;
resolve();
},
error => {
(error) => {
reject(error);
}
);
@ -30,10 +30,10 @@ class DatabaseDriverReactNative {
this.db_.executeSql(
sql,
params,
r => {
(r) => {
resolve(r.rows.length ? r.rows.item(0) : null);
},
error => {
(error) => {
reject(error);
}
);
@ -41,7 +41,7 @@ class DatabaseDriverReactNative {
}
selectAll(sql, params = null) {
return this.exec(sql, params).then(r => {
return this.exec(sql, params).then((r) => {
const output = [];
for (let i = 0; i < r.rows.length; i++) {
output.push(r.rows.item(i));
@ -55,11 +55,11 @@ class DatabaseDriverReactNative {
this.db_.executeSql(
sql,
params,
r => {
(r) => {
if ('insertId' in r) this.lastInsertId_ = r.insertId;
resolve(r);
},
error => {
(error) => {
reject(error);
}
);