From 3dd9abb8ad94ba78009b9b119b6b79dfa565429f Mon Sep 17 00:00:00 2001 From: Scott Sauyet Date: Sat, 9 Sep 2023 20:28:54 -0400 Subject: [PATCH] Fix lint warnings by removing arrow functions --- boot/boot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boot/boot.js b/boot/boot.js index c6cd983a6..803601b0f 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -295,8 +295,8 @@ for `+`) to a string $tw.utils.decodeTWURIList = function(s) { return $tw.utils.decodeURIComponentSafe( s.split('&') - .map(s => s.replaceAll('+', ' ')) - .map(s => s.includes(' ') ? '[[' + s + ']]' : s) + .map(function(s) {return s.replaceAll('+', ' ')}) + .map(function(s) {return s.includes(' ') ? '[[' + s + ']]' : s}) .join( ' ') ) };