Remove ? guard from ::oldState and ::newState references

This commit is contained in:
Nathan Sobo
2015-02-03 12:20:22 -07:00
parent 9991cd73c7
commit 75652e36d9

View File

@@ -66,7 +66,7 @@ LinesComponent = React.createClass
componentDidUpdate: ->
{visible, presenter} = @props
@removeLineNodes() unless @oldState?.indentGuidesVisible is @newState?.indentGuidesVisible
@removeLineNodes() unless @oldState.indentGuidesVisible is @newState.indentGuidesVisible
@updateLineNodes()
@measureCharactersInNewLines() if visible and not @newState.scrollingVertically