From da005714093f89ea7567ff59e683c8543bb27a64 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Tue, 5 Jan 2021 12:43:27 -0500 Subject: [PATCH] Update variable name --- modules/validations/missing_tag.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/validations/missing_tag.js b/modules/validations/missing_tag.js index d1c459262..e5e62160b 100644 --- a/modules/validations/missing_tag.js +++ b/modules/validations/missing_tag.js @@ -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; }); });