proper undefined check

deepsource-autofix-76c6eb20
Dan Gowans 2023-03-28 13:13:17 -04:00
parent 889ad4ab10
commit e78ed5e163
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import * as configFunctions from '../../helpers/functions.config.js';
export function handler(_request, response) {
if (!configFunctions.getProperty('application.ntfyStartup')) {
if (configFunctions.getProperty('application.ntfyStartup') === undefined) {
response.redirect(configFunctions.getProperty('reverseProxy.urlPrefix') +
'/dashboard/?error=ntfyNotConfigured');
return;

View File

@ -3,7 +3,7 @@ import type { Request, Response } from 'express'
import * as configFunctions from '../../helpers/functions.config.js'
export function handler(_request: Request, response: Response): void {
if (!configFunctions.getProperty('application.ntfyStartup')) {
if (configFunctions.getProperty('application.ntfyStartup') === undefined) {
response.redirect(
configFunctions.getProperty('reverseProxy.urlPrefix') +
'/dashboard/?error=ntfyNotConfigured'