Update wrong methods (#6882)

* Update wrong methods

* tslint fix

* change back to StringUtil
This commit is contained in:
Iulia Burcă
2021-03-31 11:08:59 +03:00
committed by GitHub
parent e0efec5d85
commit ed6cc26930

View File

@@ -107,18 +107,20 @@ export class StringUtil {
return fileNames; return fileNames;
} }
/** /** Generates a random name for a process
* Generates a random name for a process *
* @param length {int} If this parameter is not provided the length is set to 5 by default.
*/ */
static generateProcessName(): string { static generateProcessName(length: number = 5): string {
return 'process_' + StringUtil.generateRandomString(5); return 'process_' + StringUtil.generateRandomString(length);
} }
/** /** Generates a random name for a process
* Generates a random name for a task *
* @param length {int} If this parameter is not provided the length is set to 5 by default.
*/ */
static generateUserTaskName(): string { static generateUserTaskName(length: number = 5): string {
return 'userTask_' + StringUtil.generateRandomString(5); return 'userTask_' + StringUtil.generateRandomString(length);
} }
} }