Skip to content

Commit

Permalink
replace == with ===
Browse files Browse the repository at this point in the history
  • Loading branch information
Howon Song committed Apr 7, 2015
1 parent 74ea2c3 commit b961df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ SearchSource.prototype._updateStore = function(data) {

// Remove items in client DB that we no longer need
var currentIdStrs = _.map(currentIds, function(currentId){
return (typeof(currentId) == 'string') ? currentId : currentId._str;
return (typeof(currentId) === 'string') ? currentId : currentId._str;
});
var removedItems = _.reject(storeIds, function(storeId) {
storeId = (typeof(storeId) == 'string') ? storeId : storeId._str;
storeId = (typeof(storeId) === 'string') ? storeId : storeId._str;
return _.contains(currentIdStrs, storeId);
});
removedItems.forEach(function(id) {
Expand Down

0 comments on commit b961df5

Please sign in to comment.