mirror of
https://github.com/atom/atom.git
synced 2026-02-13 08:04:56 -05:00
Remove unneeded if/else
This commit is contained in:
@@ -64,10 +64,7 @@ class CursorView extends View
|
||||
|
||||
# Override for speed. The base function checks the computedStyle
|
||||
isHidden: ->
|
||||
if this[0].style.display is 'none' or not @isOnDom()
|
||||
true
|
||||
else
|
||||
false
|
||||
this[0].style.display is 'none' or not @isOnDom()
|
||||
|
||||
needsAutoscroll: ->
|
||||
@cursor.needsAutoscroll
|
||||
|
||||
Reference in New Issue
Block a user