Skip to content

Commit

Permalink
doc: remove outdated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dpobel committed Jun 14, 2020
1 parent 8e957e0 commit 8687631
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
var Matcher = require('minimatch').Minimatch;

/**
* Sets the given metadata on the file object
*
* @param file {Object}
* @param metadata {Object}
* @private
*/
function setMetadata(file, global, rule) {
if (typeof rule.metadata === 'function') {
rule = Object.assign({}, rule, { metadata: rule.metadata(file, global) });
Expand All @@ -21,12 +14,6 @@ function setMetadata(file, global, rule) {

/**
* Sets some metadata on each file depending a pattern
*
* @param rules {Array} array of rules to set the metadata, each item of
* the array should be a literal object containing a `pattern` entry (String)
* and a `metadata` entry (Object)
*
* @return {Function}
*/
module.exports = function (rules) {
var rules = rules || [],
Expand Down

0 comments on commit 8687631

Please sign in to comment.