Update variable name

This commit is contained in:
Quincy Morgan
2021-01-05 12:43:27 -05:00
parent e57793fab0
commit da00571409

View File

@@ -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;
});
});