chore: comments

This commit is contained in:
karishmas6
2024-06-08 00:15:11 +05:30
parent 7d9ecdd3ab
commit 54dc526abe

View File

@@ -311,7 +311,11 @@ export class WorkflowGenerator {
return this.workflowRecord;
};
/**
* Removes a pair from the currently generated workflow.
* @param index The index of the pair to be removed.
* @returns void
*/
public removePairFromWorkflow = (index: number) => {
if (index <= this.workflowRecord.workflow.length && index >= 0) {
this.workflowRecord.workflow.splice(this.workflowRecord.workflow.length - (index + 1), 1);