chore(generators): Don't add unnecessary escapes (#6161)

Closure Compiler was complaining about unnecessary backslashes in
template literals, so remove them.
This commit is contained in:
Christopher Allen
2022-05-12 16:50:01 +01:00
committed by GitHub
parent 91b570ace5
commit 3e19aded39
3 changed files with 4 additions and 4 deletions

View File

@@ -250,7 +250,7 @@ function ${JavaScript.FUNCTION_NAME_PLACEHOLDER_}(myList) {
// mathMedian([null,null,1,3]) === 2.0.
const functionName = JavaScript.provideFunction_('mathMedian', `
function ${JavaScript.FUNCTION_NAME_PLACEHOLDER_}(myList) {
var localList = myList.filter(function (x) {return typeof x === \'number\';});
var localList = myList.filter(function (x) {return typeof x === 'number';});
if (!localList.length) return null;
localList.sort(function(a, b) {return b - a;});
if (localList.length % 2 === 0) {