diff --git a/script/validate-data/index.ts b/script/validate-data/index.ts index 92b473e..8413653 100755 --- a/script/validate-data/index.ts +++ b/script/validate-data/index.ts @@ -82,7 +82,7 @@ async function checkWorkflow(workflowPath: string, propertiesPath: string): Prom const propertiesFileContent = await fs.readFile(propertiesPath, "utf8") const properties: WorkflowProperties = JSON.parse(propertiesFileContent) - if(properties.name && properties.name.trim.length > 0) { + if(properties.name && properties.name.trim().length > 0) { workflowErrors.name = properties.name } let v = new validator();