MDL-54944 js: ensure functions are consistent in return val
authorDan Poltawski <dan@moodle.com>
Wed, 29 Jun 2016 14:11:37 +0000 (15:11 +0100)
committerDan Poltawski <dan@moodle.com>
Thu, 7 Jul 2016 11:11:07 +0000 (12:11 +0100)
commit5602dc173564ddad812828712446af676cf367b8
tree8acc6950f90c2ee95933ca06a4435e7b4aee2b53
parent7b7d55e11abf8642622a4ad40bbbabc4480e2cf0
MDL-54944 js: ensure functions are consistent in return val

Mostly we are being incosnistent when giving an early-exit shortcut.

Detected by http://eslint.org/docs/rules/consistent-return
admin/tool/lp/amd/src/competencypicker.js
admin/tool/lp/amd/src/competencypicker_user_plans.js
admin/tool/lp/amd/src/competencyruleconfig.js
admin/tool/lp/amd/src/menubar.js
lib/amd/src/notification.js
lib/amd/src/tag.js
mod/lti/amd/src/cartridge_registration_form.js