Skip to content

Commit e05c961

Browse files
committed
chore: apply Prettier formatting to activity.js
1 parent 8c1c0a1 commit e05c961

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

js/activity.js

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,9 +2087,8 @@ class Activity {
20872087
// Queue and take first step.
20882088
if (!this.turtles.running()) {
20892089
this.logo.runLogoCommands();
2090-
document.getElementById(
2091-
"stop"
2092-
).style.color = this.toolbar.stopIconColorWhenPlaying;
2090+
document.getElementById("stop").style.color =
2091+
this.toolbar.stopIconColorWhenPlaying;
20932092
}
20942093
this.logo.step();
20952094
} else {
@@ -2419,9 +2418,8 @@ class Activity {
24192418
i < this.palettes.dict[this.palettes.activePalette].protoList.length;
24202419
i++
24212420
) {
2422-
const name = this.palettes.dict[this.palettes.activePalette].protoList[i][
2423-
"name"
2424-
];
2421+
const name =
2422+
this.palettes.dict[this.palettes.activePalette].protoList[i]["name"];
24252423
if (name in obj["FLOWPLUGINS"]) {
24262424
// eslint-disable-next-line no-console
24272425
console.log("deleting " + name);
@@ -5407,9 +5405,8 @@ class Activity {
54075405
}
54085406
}
54095407
staffBlocksMap[staffIndex].baseBlocks[0][0][firstnammedo][4][0] = blockId;
5410-
staffBlocksMap[staffIndex].baseBlocks[repeatId.end][0][
5411-
endnammedo
5412-
][4][1] = null;
5408+
staffBlocksMap[staffIndex].baseBlocks[repeatId.end][0][endnammedo][4][1] =
5409+
null;
54135410

54145411
blockId += 2;
54155412
} else {
@@ -5477,9 +5474,8 @@ class Activity {
54775474
prevnameddo
54785475
][4][1] = blockId;
54795476
} else {
5480-
staffBlocksMap[staffIndex].repeatBlock[
5481-
prevrepeatnameddo
5482-
][4][3] = blockId;
5477+
staffBlocksMap[staffIndex].repeatBlock[prevrepeatnameddo][4][3] =
5478+
blockId;
54835479
}
54845480
if (afternamedo !== -1) {
54855481
staffBlocksMap[staffIndex].baseBlocks[repeatId.end][0][
@@ -6354,8 +6350,8 @@ class Activity {
63546350
let customName = "custom";
63556351
if (myBlock.connections[1] !== null) {
63566352
// eslint-disable-next-line max-len
6357-
customName = this.blocks.blockList[myBlock.connections[1]]
6358-
.value;
6353+
customName =
6354+
this.blocks.blockList[myBlock.connections[1]].value;
63596355
}
63606356
// eslint-disable-next-line no-console
63616357
console.log(customName);

0 commit comments

Comments
 (0)