We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a8ad20 + e84c684 commit ab388ccCopy full SHA for ab388cc
src/lib/ruby-generator/index.js
@@ -369,7 +369,8 @@ export default function (Blockly) {
369
}
370
371
if (this.editingTarget) {
372
- code = `${this.spriteNew(this.editingTarget)} do\n${this.prefixLines(code, this.INDENT)}end`;
+ const body = code ? this.prefixLines(code, this.INDENT) : '';
373
+ code = `${this.spriteNew(this.editingTarget)} do\n${body}end`;
374
375
376
return allDefs + code;
0 commit comments