Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
es128 committed Dec 23, 2014
1 parent 0b0c087 commit 84d4f54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var minimatch = require('minimatch');

var anymatch = function(criteria, value, returnIndex, startIndex, endIndex) {
if (!Array.isArray(criteria)) { criteria = [criteria]; }
var string = Array.isArray(value) ? value[0] : value;
if (arguments.length === 1) { return anymatch.bind(null, criteria); }
if (startIndex == null) { startIndex = 0; }
var string = Array.isArray(value) ? value[0] : value;
if (!startIndex) { startIndex = 0; }
var matchIndex = -1;
function testCriteria (criterion, index) {
var result;
Expand Down

0 comments on commit 84d4f54

Please sign in to comment.