Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
Change-Id: Ib28086f505d8911377d1bd827e076dbd715835f6
  • Loading branch information
ewpatton committed Feb 29, 2024
1 parent a5c2b0d commit 6af8836
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/multiselect_contextmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,6 @@ const updateToMultiCopyToBackpack =
if (!backpack) {
return '';
}
const backpackCount = backpack.getCount();
let workableBlocksLength = 0;
const blockSelection = blockSelectionWeakMap.get(ws);
if (!blockSelection.size) {
Expand All @@ -783,9 +782,11 @@ const updateToMultiCopyToBackpack =
}
if (workableBlocksLength > 1) {
if (Blockly.Msg['COPY_X_TO_BACKPACK']) {
return Blockly.Msg['COPY_X_TO_BACKPACK'].replace('%1', workableBlocksLength.toString());
return Blockly.Msg['COPY_X_TO_BACKPACK']
.replace('%1', workableBlocksLength.toString());
} else {
return `${Blockly.Msg['COPY_TO_BACKPACK']} (${workableBlocksLength})`;
return Blockly.Msg['COPY_TO_BACKPACK'] +
`(${workableBlocksLength})`;
}
} else {
return Blockly.Msg['COPY_TO_BACKPACK'];
Expand Down

0 comments on commit 6af8836

Please sign in to comment.