Use ? in the conditional.

This commit is contained in:
Ben Ogle
2014-06-20 12:50:42 -07:00
parent aef6991ca8
commit dee0771dd7

View File

@@ -144,7 +144,7 @@ GutterComponent = React.createClass
innerHTML = @buildLineNumberInnerHTML(bufferRow, softWrapped, maxLineNumberDigits)
classes = ''
if lineDecorations and decorations = lineDecorations[screenRow]
if lineDecorations? and decorations = lineDecorations[screenRow]
for decoration in decorations
if editor.decorationMatchesType(decoration, 'gutter')
classes += decoration.class + ' '