]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/extra-utils/miscs/email.ts
move from trending routes to alg param
[github/Chocobozzz/PeerTube.git] / shared / extra-utils / miscs / email.ts
index d6219deb3bbf7e829c8f81876bf099962bec4476..15d298a73cfb194340a8c1b16b3ad26d1b03b51c 100644 (file)
@@ -37,11 +37,11 @@ class MockSmtpServer {
         return rej(new Error('maildev exited unexpectedly, confirm port not in use'))
       })
       this.emailChildProcess.on('message', (msg: any) => {
-        if (msg.err) {
-          return rej(new Error(msg.err))
-        }
+        if (msg.err) return rej(new Error(msg.err))
+
         this.started = true
         this.emails = emailsCollection
+
         return res(port)
       })
     })