mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
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:
committed by
GitHub
parent
91b570ace5
commit
3e19aded39
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user