Skip to content

Commit

Permalink
Backport of a994ed5 fix multiple require autofill
Browse files Browse the repository at this point in the history
- Refs #294, #314
  • Loading branch information
pascalduez committed Jan 9, 2015
1 parent 6e414c8 commit 37f10ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/annotation/annotations/requires.js
Expand Up @@ -22,7 +22,7 @@ var searchForMatches = function(code, regex, isAnnotatedByHand){
matches.push(match[1]);
}
}
return uniq(matches);
return matches;
};


Expand Down Expand Up @@ -138,8 +138,8 @@ module.exports = {
all = all.concat(item.requires);
}

if (all.length > 0){
return all;
if (all.length > 0) {
return uniq(all, 'name');
}
}
},
Expand Down

0 comments on commit 37f10ce

Please sign in to comment.