-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from screwdriver-cd/typo
fix: Small jsdoc fixes
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
'use strict'; | ||
|
||
/** | ||
* Calculate if the workflow contains a cycle, e.g. A -> B -> A | ||
* @method hasCycle | ||
* Check if the workflow has a join, e.g. A + B -> C | ||
* @method hasJoin | ||
* @param {Object} workflowGraph Graph representation of workflow | ||
* @return {Boolean} True if a cycle exists anywhere in the workflow | ||
*/ | ||
const hasJoin = workflowGraph => | ||
// Check from all the nodes to capture deteached workflows | ||
// Check from all the nodes to capture detached workflows | ||
workflowGraph.edges.some(edge => edge.join); | ||
|
||
module.exports = hasJoin; |