mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
cosmetic: Use early-return instead of else/if.
This commit is contained in:
@@ -171,13 +171,23 @@ function do_hashchange_overlay(old_hash) {
|
||||
|
||||
if (base === "streams") {
|
||||
subs.launch(section);
|
||||
} else if (base === "drafts") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (base === "drafts") {
|
||||
drafts.launch();
|
||||
} else if (/settings|organization/.test(base)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (/settings|organization/.test(base)) {
|
||||
settings.setup_page();
|
||||
admin.setup_page();
|
||||
} else if (base === "invite") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (base === "invite") {
|
||||
invite.launch();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user