Skip to content

Commit

Permalink
Fix false positive of tags suggesting area on features where other ta…
Browse files Browse the repository at this point in the history
…gs define the preset (close #5945, re: #5933)
  • Loading branch information
quincylvania committed Feb 25, 2019
1 parent ca0da28 commit 6630186
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/validations/tag_suggests_area.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export function validationTagSuggestsArea() {
return [];
}

if (context.presets().matchTags(entity.tags, 'line') ===
context.presets().matchTags(entity.tags, 'area')) {
// the preset allows lines and making this an area wouldn't matter
if (context.presets().matchTags(tagSuggestingArea, 'line') ===
context.presets().matchTags(tagSuggestingArea, 'area')) {
// these tags also allow lines and making this an area wouldn't matter
return [];
}

Expand Down

0 comments on commit 6630186

Please sign in to comment.