From dee0771dd79c6deac1629dd93856e2d06176ba1d Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Fri, 20 Jun 2014 12:50:42 -0700 Subject: [PATCH] Use ? in the conditional. --- src/gutter-component.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gutter-component.coffee b/src/gutter-component.coffee index 7359ddd8c..2555c7ebd 100644 --- a/src/gutter-component.coffee +++ b/src/gutter-component.coffee @@ -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 + ' '