From bfd676d48dd131879870ae3fff46b4e436e15e31 Mon Sep 17 00:00:00 2001 From: NovemLinguae Date: Mon, 9 Dec 2024 15:49:35 -0800 Subject: [PATCH] fix linter error --- modules/twinkletag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/twinkletag.js b/modules/twinkletag.js index 3e88cd52c..6306d5ff5 100644 --- a/modules/twinkletag.js +++ b/modules/twinkletag.js @@ -2009,7 +2009,7 @@ Twinkle.tag.callbacks = { * @return {true|undefined} */ Twinkle.tag.checkIncompatible = function(incompatibleTags, tagsToCheck, extraMessage = null) { - const count = incompatibleTags.reduce((sum, tag) => sum += tagsToCheck.indexOf(tag) !== -1, 0); + const count = incompatibleTags.reduce((sum, tag) => sum += tagsToCheck.includes(tag), 0); if (count > 1) { const incompatibleTagsString = '{{' + incompatibleTags.join('}}, {{') + '}}'; let message = 'Please select only one of: ' + incompatibleTagsString + '.';