Skip to content

Commit

Permalink
fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae committed Dec 9, 2024
1 parent de4b0d4 commit bfd676d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/twinkletag.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '.';
Expand Down

0 comments on commit bfd676d

Please sign in to comment.