mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
collab_client: Invert condition to improve readability
This commit is contained in:
parent
03275ba227
commit
3f7745b48b
1 changed files with 3 additions and 4 deletions
|
@ -357,10 +357,9 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, options, _pad)
|
||||||
};
|
};
|
||||||
|
|
||||||
const setChannelState = (newChannelState, moreInfo) => {
|
const setChannelState = (newChannelState, moreInfo) => {
|
||||||
if (newChannelState !== channelState) {
|
if (newChannelState === channelState) return;
|
||||||
channelState = newChannelState;
|
channelState = newChannelState;
|
||||||
callbacks.onChannelStateChange(channelState, moreInfo);
|
callbacks.onChannelStateChange(channelState, moreInfo);
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const valuesArray = (obj) => {
|
const valuesArray = (obj) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue