Remove triple parens
This commit is contained in:
parent
f6fd979ccb
commit
969127a72a
1 changed files with 4 additions and 4 deletions
|
@ -100,20 +100,20 @@ function format(entries) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetch() {
|
function fetch() {
|
||||||
return new Promise(((resolve) => {
|
return new Promise((resolve) => {
|
||||||
ipc.send('fetch-log');
|
ipc.send('fetch-log');
|
||||||
|
|
||||||
ipc.on('fetched-log', (event, text) => {
|
ipc.on('fetched-log', (event, text) => {
|
||||||
const result = `${getHeader()}\n${format(text)}`;
|
const result = `${getHeader()}\n${format(text)}`;
|
||||||
resolve(result);
|
resolve(result);
|
||||||
});
|
});
|
||||||
}));
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function publish(rawContent) {
|
function publish(rawContent) {
|
||||||
const content = rawContent || fetch();
|
const content = rawContent || fetch();
|
||||||
|
|
||||||
return new Promise(((resolve) => {
|
return new Promise((resolve) => {
|
||||||
const payload = textsecure.utils.jsonThing({
|
const payload = textsecure.utils.jsonThing({
|
||||||
files: {
|
files: {
|
||||||
'debugLog.txt': {
|
'debugLog.txt': {
|
||||||
|
@ -129,7 +129,7 @@ function publish(rawContent) {
|
||||||
resolve(response.html_url);
|
resolve(response.html_url);
|
||||||
})
|
})
|
||||||
.fail(resolve);
|
.fail(resolve);
|
||||||
}));
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue