🐛 fix(utils.ts): simplify ternary operator in validateNode function

The ternary operator in the validateNode function was simplified by removing the unnecessary if statement. The code is now more concise and easier to read.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-23 10:54:34 -03:00
commit 0645693069

View file

@ -749,9 +749,7 @@ export function validateNode(
)
? [
`${type} is missing ${
template.display_name
? template.display_name
: toNormalCase(template[t].name)
template.display_name || toNormalCase(template[t].name)
}.`,
]
: []