less code

This commit is contained in:
Dennis Ushakov
2016-06-28 13:33:22 +03:00
parent e385571c08
commit 547e778b85
@@ -472,7 +472,7 @@ public class BraceHighlightingHandler {
if (lBrace != null && rBrace !=null) {
final int startLine = myEditor.offsetToLogicalPosition(lBrace.getStartOffset()).line;
final int endLine = myEditor.offsetToLogicalPosition(rBrace.getEndOffset()).line;
if (endLine - startLine >= 0) {
if (endLine - startLine > 0) {
final Runnable runnable = () -> {
if (myProject.isDisposed() || myEditor.isDisposed()) return;
Color color = attributes.getBackgroundColor();
@@ -489,9 +489,7 @@ public class BraceHighlightingHandler {
}
}
else {
if (!myCodeInsightSettings.HIGHLIGHT_SCOPE) {
removeLineMarkers();
}
removeLineMarkers();
}
if (!scopeHighlighting) {