mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
pad_editbar: Delete unnecessary returned
variable
This commit is contained in:
parent
a4652d67a0
commit
59d6a8b321
1 changed files with 1 additions and 2 deletions
|
@ -211,7 +211,6 @@ exports.padeditbar = {
|
||||||
|
|
||||||
// hide all modules and remove highlighting of all buttons
|
// hide all modules and remove highlighting of all buttons
|
||||||
if (moduleName === 'none') {
|
if (moduleName === 'none') {
|
||||||
const returned = false;
|
|
||||||
for (const thisModuleName of this.dropdowns) {
|
for (const thisModuleName of this.dropdowns) {
|
||||||
// skip the userlist
|
// skip the userlist
|
||||||
if (thisModuleName === 'users') continue;
|
if (thisModuleName === 'users') continue;
|
||||||
|
@ -227,7 +226,7 @@ exports.padeditbar = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!returned && cb) return cb();
|
if (cb) return cb();
|
||||||
} else {
|
} else {
|
||||||
// hide all modules that are not selected and remove highlighting
|
// hide all modules that are not selected and remove highlighting
|
||||||
// respectively add highlighting to the corresponding button
|
// respectively add highlighting to the corresponding button
|
||||||
|
|
Loading…
Reference in a new issue