mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 20:56:54 +00:00
Lint
This commit is contained in:
1 parent
13ba5ebcc8
commit
e14c8c5e91
1 file changed
+3
-4
@@ -68,10 +68,9 @@ const Editor = createClass({
|
||||
},
|
||||
|
||||
handleInject : function(injectText){
|
||||
const text = (
|
||||
this.isText() ? this.props.brew.text :
|
||||
this.isStyle() ? this.props.brew.style ?? DEFAULT_STYLE_TEXT : ''
|
||||
);
|
||||
let text;
|
||||
if(this.isText()) text = this.props.brew.text;
|
||||
if(this.isStyle()) text = this.props.brew.style ?? DEFAULT_STYLE_TEXT;
|
||||
|
||||
const lines = text.split('\n');
|
||||
const cursorPos = this.refs.codeEditor.getCursorPosition();
|
||||
|
||||
Reference in new issue
Block a user