Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit 0bd7fe7

Browse files
author
synox
committed
cleanup for XO
1 parent 8b18a8c commit 0bd7fe7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const config = require('./application/config')
66
// Until node 11 adds flatmap, we use this:
77
require('array.prototype.flatmap').shim()
88

9-
const { app, io, server } = require('./infrastructure/web/web')
9+
const {app, io, server} = require('./infrastructure/web/web')
1010
const ClientNotification = require('./infrastructure/web/client-notification')
1111
const ImapService = require('./application/imap-service')
1212
const MailProcessingService = require('./application/mail-processing-service')
@@ -51,7 +51,6 @@ imapService.connectAndLoadMessages().catch(error => {
5151
process.exit(1)
5252
})
5353

54-
5554
server.on('error', error => {
5655
if (error.syscall !== 'listen') {
5756
console.error('fatal web server error', error)
@@ -61,7 +60,9 @@ server.on('error', error => {
6160
// Handle specific listen errors with friendly messages
6261
switch (error.code) {
6362
case 'EACCES':
64-
console.error('Port ' + config.http.port + ' requires elevated privileges')
63+
console.error(
64+
'Port ' + config.http.port + ' requires elevated privileges'
65+
)
6566
process.exit(1)
6667
case 'EADDRINUSE':
6768
console.error('Port ' + config.http.port + ' is already in use')
@@ -70,6 +71,4 @@ server.on('error', error => {
7071
console.error('fatal web server error', error)
7172
process.exit(1)
7273
}
73-
}
74-
)
75-
74+
})

infrastructure/web/public/javascripts/notifications.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint no-unused-vars: 0 */
2+
/* eslint no-undef: 0 */
23

34
function showNewMailsNotification(address, reloadPage) {
45
// We want the page to be reloaded. But then when clicking the notification, it can not find the tab and will open a new one.

0 commit comments

Comments
 (0)