Skip to content

Commit 451a458

Browse files
committed
fix lint.
1 parent 5c6c992 commit 451a458

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/ruby-generator/microbit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function (Generator) {
3232
return `microbit.display_text(${text})\n`;
3333
};
3434

35-
Generator.microbit_displayClear = function (block) {
35+
Generator.microbit_displayClear = function () {
3636
return `microbit.clear_display\n`;
3737
};
3838

@@ -86,7 +86,7 @@ export default function (Generator) {
8686
Generator.matrix = function (block) {
8787
let matrix = Generator.getFieldValue(block, 'MATRIX') || '0000000000000000000000000';
8888
matrix = matrix.replace(/0/g, ' ');
89-
matrix = matrix.match(/.{5}/g).map(s => Generator.quote_(s + ':'));
89+
matrix = matrix.match(/.{5}/g).map(s => Generator.quote_(`${s}:`));
9090
return [matrix.join('\n'), Generator.ORDER_ATOMIC];
9191
};
9292

0 commit comments

Comments
 (0)