You've already forked joplin
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:
@ -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);
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user