diff options
author | Bryce Johnson <bryce@gitlab.com> | 2017-09-20 15:17:08 -0400 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2017-09-20 15:17:08 -0400 |
commit | 014bbe6562d7feb374f7c1eaa14846bb56f7c2a6 (patch) | |
tree | 21dd6fd42ca5ff26d4b5a573e92dfa685187d6b7 /app/assets/javascripts | |
parent | 8349782f7f9774f72de37da75e9956fca8e3d5cb (diff) | |
download | gitlab-ce-014bbe6562d7feb374f7c1eaa14846bb56f7c2a6.tar.gz |
Remove eslint-disable, and use arrow function.emoji-dom-size
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/awards_handler.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/awards_handler.js b/app/assets/javascripts/awards_handler.js index 2fcd9d3d4a2..5f9695cc443 100644 --- a/app/assets/javascripts/awards_handler.js +++ b/app/assets/javascripts/awards_handler.js @@ -544,9 +544,8 @@ class AwardsHandler { $emojiMenu.addClass(IS_RENDERED); // enqueues animation as a microtask, so it begins ASAP once IS_RENDERED added - Promise.resolve().then(() => { // eslint-disable-line promise/catch-or-return - $emojiMenu.addClass(IS_VISIBLE); - }); + return Promise.resolve() + .then(() => $emojiMenu.addClass(IS_VISIBLE)); } hideMenuElement($emojiMenu) { |