mediawiki.jqueryMsg: Reorder more code for readability
Some variables don't need to be declared at the top of the relevant scope if they are only used after they are defined, since we no longer enable the eslint rule vars-on-top. Move the declarations to where they are defined. Also, in mw.jqueryMsg.HtmlEmitter.emit replace a temporary return variable with direct early returns. Should be a no-op in terms of functionality. Change-Id: I8c036c5305a99b93140a8d02faafa7bed928c0b6
This commit is contained in:
parent
ba6d3c5dfa
commit
3c5ef86bc0
1 changed files with 32 additions and 46 deletions
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue