Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Oct 20, 2017
1 parent 5fbd2c5 commit c1dbeea
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions public/vislib/geoFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,14 @@ define(function (require) {

if (existingFilter) {
let geoFilters = _.flatten([newFilter]);
let type = '';
if (_.has(existingFilter, 'bool.should')) {
geoFilters = geoFilters.concat(existingFilter.bool.should);
type = 'bool';
} else if (_.has(existingFilter, 'geo_bounding_box')) {
geoFilters.push({geo_bounding_box: existingFilter.geo_bounding_box});
type = 'geo_bounding_box';
} else if (_.has(existingFilter, 'geo_polygon')) {
geoFilters.push({geo_polygon: existingFilter.geo_polygon});
type = 'geo_polygon';
} else if (_.has(existingFilter, 'geo_shape')) {
geoFilters.push({geo_shape: existingFilter.geo_shape});
type = 'geo_shape';
}

// Update method removed - so just remove old filter and add updated filter
Expand Down

0 comments on commit c1dbeea

Please sign in to comment.