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

Commit

Permalink
Use strict equal of length of added and removed sets against zero
Browse files Browse the repository at this point in the history
Addresses code review comments
  • Loading branch information
Amr El-Naggar committed Aug 26, 2016
1 parent b729799 commit 30bbf5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search/FindInFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ define(function (require, exports, module) {

var addPromise;
if (entry.isDirectory) {
if (!added || !removed || (!added.length && !removed.length)) {
if (!added || !removed || (added.length === 0 && removed.length === 0)) {
// If the added or removed sets are null, must redo the search for the entire subtree - we
// don't know which child files/folders may have been added or removed.
_removeSearchResultsForEntry(entry);
Expand Down

0 comments on commit 30bbf5f

Please sign in to comment.