comply with linter

This commit is contained in:
Iuri Matias 2018-02-24 09:26:43 -05:00
parent 349807496a
commit 96df409229
1 changed files with 3 additions and 3 deletions

View File

@ -192,13 +192,13 @@ Config.prototype.loadChainTrackerFile = function() {
function findMatchingExpression(filename, filesExpressions) { function findMatchingExpression(filename, filesExpressions) {
for (let fileExpression of filesExpressions) { for (let fileExpression of filesExpressions) {
var matchingFiles = utils.filesMatchingPattern(fileExpression); var matchingFiles = utils.filesMatchingPattern(fileExpression);
for (matchFile of matchingFiles) { for (let matchFile of matchingFiles) {
if (matchFile === filename) { if (matchFile === filename) {
return path.dirname(fileExpression).replace(/\*/g, '') return path.dirname(fileExpression).replace(/\*/g, '');
} }
} }
} }
return path.dirname(filename) return path.dirname(filename);
} }
Config.prototype.loadFiles = function(files) { Config.prototype.loadFiles = function(files) {