mirror of https://github.com/embarklabs/embark.git
comply with linter
This commit is contained in:
parent
349807496a
commit
96df409229
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue