mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
use includes instead of indexOf
use _.uniq instead of filter&indexOf
This commit is contained in:
@@ -157,7 +157,7 @@ module.exports = function (Plugins) {
|
||||
|
||||
function checkVersion(pluginData) {
|
||||
function add() {
|
||||
if (Plugins.versionWarning.indexOf(pluginData.id) === -1) {
|
||||
if (!Plugins.versionWarning.includes(pluginData.id)) {
|
||||
Plugins.versionWarning.push(pluginData.id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user