 
   resize: ->
     promiseNextTick.then() =>
-      if @visible then @show(0) else @hide(0)
+      if @visible then @show 0  else @hide 0
     .catch error
 
   storeFocusedElement: ->

    {pushEditor} = @conf

    # wait until the tree view package is activated
    atom.packages.activatePackage('tree-view').then (treeViewPkg) =>
      @registerTreeView treeViewPkg
      @handleEvents()
      # start with pushEditor = true, we'll change it back later

  # resolves true if animation finished, false if animation cancelled
  animate: (targetWidth, delay) ->
    initialWidth = @treeViewEl.clientWidth
    duration = Math.abs targetWidth - initialWidth / (@conf.animationSpeed or Infinity)

    if @currentAnimation? and @currentAnimation.playState isnt 'finished'
      @currentAnimation.cancel()
