Skip to content

Commit

Permalink
Chore: Remove dead code in excuteOnFiles (fixes #6467) (#6466)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahutchings authored and nzakas committed Jun 21, 2016
1 parent 18fbc4b commit b179373
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/cli-engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,6 @@ CLIEngine.prototype = {
*/
executeOnFiles: function(patterns) {
var results = [],
processed = {},
options = this.options,
fileCache = this._fileCache,
configHelper = new Config(options),
Expand Down Expand Up @@ -655,13 +654,6 @@ CLIEngine.prototype = {
if (!changed) {
debug("Skipping file since hasn't changed: " + filename);

/*
* Adding the filename to the processed hashmap
* so the reporting is not affected (showing a warning about .eslintignore being used
* when it is not really used)
*/
processed[filename] = true;

/*
* Add the the cached results (always will be 0 error and
* 0 warnings). We should not cache results for files that
Expand All @@ -677,8 +669,6 @@ CLIEngine.prototype = {

debug("Processing " + filename);

processed[filename] = true;

var res = processFile(filename, configHelper, options);

if (options.cache) {
Expand Down

0 comments on commit b179373

Please sign in to comment.