Simplify promise by using .then()
Simplify promise by using .then()

Change-Id: I400c604a693f8786964f3710140b32ba74e3bd93

wikimedia/mediawiki-extensions-Thanks,wikimedia/mediawiki-extensions-Thanks,wikimedia/mediawiki-extensions-Thanks