Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Conform code to conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonweekes committed Oct 8, 2014
1 parent d63a124 commit 0c83a92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/search/FindInFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ define(function (require, exports, module) {

// We have the max hits in just this 1 file. Stop searching this file.
// This fixed issue #1829 where code hangs on too many hits.
// ** Adds one over MAX_TOTAL_RESULTS in order to know if the search has exceeded
// or is equal to MAX_TOTAL_RESULTS. Additional result removed in SearchModel **
// Adds one over MAX_TOTAL_RESULTS in order to know if the search has exceeded
// or is equal to MAX_TOTAL_RESULTS. Additional result removed in SearchModel
if (matches.length > SearchModel.MAX_TOTAL_RESULTS) {
queryExpr.lastIndex = 0;
break;
Expand Down
2 changes: 1 addition & 1 deletion src/search/SearchModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ define(function (require, exports, module) {
// Remove final result if there have been over MAX_TOTAL_RESULTS found
if (this.numMatches > SearchModel.MAX_TOTAL_RESULTS) {
this.results[fullpath].matches.pop();
this.numMatches -= 1;
this.numMatches--;
this.exceedsMaximum = true;
}
}
Expand Down

0 comments on commit 0c83a92

Please sign in to comment.