api.js: Add an else to avoid unnecessary checks
authorFomafix <fomafix@googlemail.com>
Tue, 24 Oct 2017 09:23:46 +0000 (11:23 +0200)
committerFomafix <fomafix@googlemail.com>
Tue, 24 Oct 2017 09:23:46 +0000 (11:23 +0200)
commite73b63dd3b977eb3a1606d88f374a47ac0ae102c
tree64daba617e9a7d515c727008269983019962ace7
parent433d2480f994932162da94b857e1d297d59cd4c8
api.js: Add an else to avoid unnecessary checks

If the first if matches then the second if can never match.

Change-Id: I96d59b57cac414c9ee7008e2f284a7a4e3348f3f
resources/src/mediawiki/api.js