Skip to content

Commit d1b34f9

Browse files
committed
fixed style.
1 parent dd7ee6d commit d1b34f9

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/containers/ruby-tab.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ class RubyTab extends React.Component {
5050
}
5151
});
5252
return;
53-
} else {
54-
this.aceEditorRef.editor.focus();
5553
}
54+
this.aceEditorRef.editor.focus();
5655
}
5756
}
5857

src/lib/ruby-to-blocks-converter-hoc.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ const RubyToBlocksConverterHOC = function (WrappedComponent) {
4545
*/
4646
targetCodeToBlocks () {
4747
if (this.props.rubyCode.modified) {
48-
const converter = targetCodeToBlocks(this.props.vm, this.props.rubyCode.target, this.props.rubyCode.code);
48+
const converter = targetCodeToBlocks(
49+
this.props.vm,
50+
this.props.rubyCode.target,
51+
this.props.rubyCode.code
52+
);
4953
if (!converter.result) {
5054
this.props.vm.setEditingTarget(this.props.rubyCode.target.id);
5155
if (!this.props.rubyCode.target.isStage) {

src/lib/ruby-to-blocks-converter/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,18 +1229,14 @@ class RubyToBlocksConverter {
12291229
const NullRubyToBlocksConverter = {
12301230
result: true,
12311231
errors: [],
1232-
apply: () => {
1233-
return Promise.resolve();
1234-
}
1232+
apply: () => Promise.resolve()
12351233
};
12361234

12371235
const targetCodeToBlocks = function (vm, target, code) {
12381236
const converter = new RubyToBlocksConverter(vm);
12391237
converter.result = converter.targetCodeToBlocks(target, code);
12401238
if (converter.result) {
1241-
converter.apply = () => {
1242-
return converter.applyTargetBlocks(target);
1243-
};
1239+
converter.apply = () => converter.applyTargetBlocks(target);
12441240
}
12451241
return converter;
12461242
};

0 commit comments

Comments
 (0)