pad_editbar: Delete unnecessary `returned` variable

pull/5152/head
Richard Hansen 2021-07-15 18:15:41 -04:00
parent a4652d67a0
commit 59d6a8b321
1 changed files with 1 additions and 2 deletions

View File

@ -211,7 +211,6 @@ exports.padeditbar = {
// hide all modules and remove highlighting of all buttons
if (moduleName === 'none') {
const returned = false;
for (const thisModuleName of this.dropdowns) {
// skip the userlist
if (thisModuleName === 'users') continue;
@ -227,7 +226,7 @@ exports.padeditbar = {
}
}
if (!returned && cb) return cb();
if (cb) return cb();
} else {
// hide all modules that are not selected and remove highlighting
// respectively add highlighting to the corresponding button