Fix lint errors.

This commit is contained in:
picklesrus 2018-02-16 10:49:26 -08:00
parent 57d3e564e2
commit 1910968b13
3 changed files with 12 additions and 12 deletions
src/engine

View file

@ -551,11 +551,11 @@ class Runtime extends EventEmitter {
*/
_buildMenuForScratchBlocks (menuName, menuItems, categoryInfo) {
const menuId = this._makeExtensionMenuId(menuName, categoryInfo.id);
var options = null;
let options = null;
if (typeof menuItems === 'function') {
options = function () {
options = function () {
return menuItems();
}
};
} else {
options = menuItems.map(item => {
switch (typeof item) {