using trim to check for blank names

This commit is contained in:
aparna-ravindra
2021-08-17 10:28:22 +05:30
parent ccf813d3fb
commit 124226ff32
+1 -1
View File
@@ -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();