main: style fix

This commit is contained in:
Dawid Dziurla 2021-04-25 16:14:13 +02:00
parent c938b3cb85
commit b738850ab1
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -1,7 +1,7 @@
const nodemailer = require("nodemailer")
const core = require("@actions/core")
const fs = require("fs")
const showdown = require('showdown')
const showdown = require("showdown")
function getBody(bodyOrFile, convertMarkdown) {
let body = bodyOrFile
@ -22,7 +22,7 @@ function getBody(bodyOrFile, convertMarkdown) {
}
function getFrom(from, username) {
if (from.match(/.+<.+@.+>/)) {
if (from.match(/.+ <.+@.+>/)) {
return from
}
@ -59,7 +59,7 @@ async function main() {
rejectUnauthorized: false
} : undefined
})
const info = await transport.sendMail({
from: getFrom(from, username),
to: to,