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

Revert "Tools: Added eslint rule arrow-parens"

This reverts commit 0b6f5581f0.

It causes too many conflicts with pull requests.
This commit is contained in:
Laurent Cozic
2020-05-21 09:14:33 +01:00
parent b83eee751f
commit a96734f5be
166 changed files with 444 additions and 445 deletions

View File

@ -216,7 +216,7 @@ class EncryptionService {
async randomHexString(byteCount) {
const bytes = await shim.randomBytes(byteCount);
return bytes
.map((a) => {
.map(a => {
return hexPad(a.toString(16), 2);
})
.join('');
@ -251,7 +251,7 @@ class EncryptionService {
}, options);
const bytes = await shim.randomBytes(256);
const hexaBytes = bytes.map((a) => hexPad(a.toString(16), 2)).join('');
const hexaBytes = bytes.map(a => hexPad(a.toString(16), 2)).join('');
return this.encryptMasterKeyContent_(options.encryptionMethod, hexaBytes, password);
}
@ -505,7 +505,7 @@ class EncryptionService {
const handle = await this.fsDriver().open(path, 'r');
const reader = {
handle: handle,
read: async (size) => {
read: async size => {
return this.fsDriver().readFileChunk(reader.handle, size, encoding);
},
close: async () => {
@ -517,7 +517,7 @@ class EncryptionService {
async fileWriter_(path, encoding) {
return {
append: async (data) => {
append: async data => {
return this.fsDriver().appendFile(path, data, encoding);
},
close: function() {},