Skip to content

Commit

Permalink
Update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Jan 5, 2021
1 parent e57793f commit da00571
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/validations/missing_tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ export function validationMissingTag(context) {
var type = 'missing_tag';

function hasDescriptiveTags(entity, graph) {
var onlyDescriptiveKeys = ['description', 'name', 'note', 'start_date'];
var onlyAttributeKeys = ['description', 'name', 'note', 'start_date'];
var entityDescriptiveKeys = Object.keys(entity.tags)
.filter(function(k) {
if (k === 'area' || !osmIsInterestingTag(k)) return false;

return !onlyDescriptiveKeys.some(function(desciptiveKey) {
return k === desciptiveKey || k.indexOf(desciptiveKey + ':') === 0;
return !onlyAttributeKeys.some(function(attributeKey) {
return k === attributeKey || k.indexOf(attributeKey + ':') === 0;
});
});

Expand Down

0 comments on commit da00571

Please sign in to comment.