Team-Gigabyte / quotobot

Found no return statements in callbacks of array methods JS-0042
Anti-pattern
Major
5 months ago3 years old
Array.prototype.some() expects a value to be returned at the end of arrow function
549                    const mbed = new Discord.MessageEmbed()
550                        .setColor(6765239)
551                        .setTitle("Spell Check");
552                    items.some(({ fragment, suggestions }) => {553                        let addition = `~~${fragment}~~ → **${suggestions.join("**, **") || "No suggestions"} **\n`;
554                        if (desc.length + addition.length > 2000) {
555                            mbed.setFooter("This spellcheck has been shortened.");