Revert "refactor: add license header to JS files & format files (#12035)"

This reverts commit 8310c91823.
This commit is contained in:
Chuck Jazdzewski
2016-10-04 14:06:41 -07:00
parent 8310c91823
commit 43d3a84df3
73 changed files with 947 additions and 1173 deletions

View File

@ -1,12 +1,5 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var fs = require('fs');
var path = require('path');
var minimatch = require('minimatch');
var path = require('path');
var Q = require('q');
@ -28,8 +21,10 @@ function subDirs(dir) {
function forEachSubDir(dir, callback) {
var dirs = subDirs(dir);
return Q.all(dirs.map(function(subdir) { return callback(path.join(dir, subdir)); }));
}
return Q.all(dirs.map(function(subdir) {
return callback(path.join(dir, subdir));
}));
};
function forEachSubDirSequential(dir, callback) {
var dirs = subDirs(dir);
@ -37,7 +32,9 @@ function forEachSubDirSequential(dir, callback) {
function next(index) {
if (index < dirs.length) {
return callback(path.join(dir, dirs[index])).then(function() { return next(index + 1); });
return callback(path.join(dir, dirs[index])).then(function() {
return next(index+1);
});
} else {
return true;
}
@ -78,6 +75,6 @@ function filterByFile(pathMapping, folder) {
if (match !== undefined) {
return match;
} else {
throw new Error('No entry for folder ' + folder + ' found in ' + JSON.stringify(pathMapping));
throw new Error('No entry for folder '+folder+' found in '+JSON.stringify(pathMapping));
}
}