Skip to content

Commit

Permalink
Merge pull request #6 from screwdriver-cd/typo
Browse files Browse the repository at this point in the history
fix: Small jsdoc fixes
  • Loading branch information
minzcmu committed Oct 25, 2017
2 parents 3cd845d + a882bcc commit 87834ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/hasJoin.js
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;

0 comments on commit 87834ff

Please sign in to comment.