REFACTOR: removes unreachable code (#9665)

REFACTOR: removes unreachable code (#9665)

  • REFACTOR: removes unreachable code

  • this one too

diff --git a/app/assets/javascripts/pretty-text/emoji.js b/app/assets/javascripts/pretty-text/emoji.js
index 6346cd9..a2963b8 100644
--- a/app/assets/javascripts/pretty-text/emoji.js
+++ b/app/assets/javascripts/pretty-text/emoji.js
@@ -126,8 +126,6 @@ export function performEmojiUnescape(string, opts) {
         } alt='${emojiVal}' class='${classes}'>`
       : m;
   });
-
-  return string;
 }
 
 export function performEmojiEscape(string, opts) {
@@ -145,8 +143,6 @@ export function performEmojiEscape(string, opts) {
 
     return m;
   });
-
-  return string;
 }
 
 export function isCustomEmoji(code, opts) {

GitHub sha: 01272f20

This commit appears in #9665 which was approved by eviltrout. It was merged by jjaffeux.