Skip to content

Commit

Permalink
Ran prettier to fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-ExpeData committed Sep 8, 2021
1 parent e68ada1 commit de907e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/tls-checker/index.ts
Expand Up @@ -28,7 +28,10 @@ export async function checkTLS(host: any, expiryThreshold = 30) {
const hostOptions = host?.options! ?? {}
const domain = host?.domain! ?? host

const { valid, validTo, daysRemaining } = await sslChecker(domain, hostOptions)
const { valid, validTo, daysRemaining } = await sslChecker(
domain,
hostOptions
)

if (!valid) {
throw new Error(`${domain} security certificate has expired at ${validTo}!`)
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -489,7 +489,7 @@ Please refer to the Monika documentations on how to how to configure notificatio
probe: Probe,
notifications?: Notification[]
) {
const hostIsObject = typeof host !== "string"
const hostIsObject = typeof host !== 'string'
const domain = hostIsObject ? host.domain : host

try {
Expand Down

0 comments on commit de907e9

Please sign in to comment.