Address feedback

This commit is contained in:
Jacob Wallraff
2023-01-24 11:14:35 -08:00
parent 58d92658b6
commit e6de0d11b8
+3 -3
View File
@@ -83,7 +83,7 @@ async function getDescription(
}
function isCronMappingValue(tokenResult: TokenResult): boolean {
//return tokenResult.parent?.definition?.key === "cron-mapping" &&
return isString(tokenResult.token!) &&
(tokenResult.token as StringToken).value !== "cron"
return tokenResult.parent?.definition?.key === "cron-mapping" &&
isString(tokenResult.token!) &&
tokenResult.token.value !== "cron"
}