compiler: fix coding style violations

This commit is contained in:
Miroslav Bajtoš 2014-10-27 11:10:57 +01:00
parent b480efde8a
commit d7bdbd31b1
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ module.exports = function compile(options) {
// require directories // require directories
var bootDirs = options.bootDirs || []; // precedence var bootDirs = options.bootDirs || []; // precedence
bootDirs = bootDirs.concat(path.join(appRootDir, 'boot')); bootDirs = bootDirs.concat(path.join(appRootDir, 'boot'));
var bootScripts = options.bootScripts || []; var bootScripts = options.bootScripts || [];
bootDirs.forEach(function(dir) { bootDirs.forEach(function(dir) {
bootScripts = bootScripts.concat(findScripts(dir)); bootScripts = bootScripts.concat(findScripts(dir));
@ -308,7 +308,7 @@ function loadModelDefinition(rootDir, jsonFile, allFiles) {
var definition = require(jsonFile); var definition = require(jsonFile);
var basename = path.basename(jsonFile, path.extname(jsonFile)); var basename = path.basename(jsonFile, path.extname(jsonFile));
// find a matching file with `.js` or any other supported extension like `.coffee` // find a matching file with a supported extension like `.js` or `.coffee`
var base, ext, validFileType; var base, ext, validFileType;
var sourceFile = allFiles var sourceFile = allFiles
.filter(function(f) { .filter(function(f) {