mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
Remove unneeded String() and str() calls.
String literals in JS and Python don’t need to be coerced to strings.
This commit is contained in:
@@ -252,11 +252,11 @@ Blockly.JavaScript['lists_setIndex'] = function(block) {
|
||||
|
||||
/**
|
||||
* Returns an expression calculating the index into a list.
|
||||
* @private
|
||||
* @param {string} listName Name of the list, used to calculate length.
|
||||
* @param {string} where The method of indexing, selected by dropdown in Blockly
|
||||
* @param {string=} opt_at The optional offset when indexing from start/end.
|
||||
* @return {string} Index expression.
|
||||
* @private
|
||||
*/
|
||||
Blockly.JavaScript.lists.getIndex_ = function(listName, where, opt_at) {
|
||||
if (where == 'FIRST') {
|
||||
|
||||
Reference in New Issue
Block a user