         @markRange(startRow, startRow, '.minimap .git-line-removed')
       else
         @markRange(startRow, endRow, '.minimap .git-line-modified')
-    return
 
   removeDecorations: ->
     return unless @markers?


  updateDiffs: =>
    @removeDecorations()
    if path = @getPath()
      if @diffs = @getDiffs()
        @addDecorations(@diffs)

  addDecorations: (diffs) ->
    for {oldStart, newStart, oldLines, newLines} in diffs

    @markers = null

  markRange: (startRow, endRow, scope) ->
    return if @editor.getBuffer().isDestroyed()
    marker = @editor.markBufferRange([[startRow, 0], [endRow, Infinity]], invalidate: 'never')
    @minimapView.decorateMarker(marker, type: 'line', scope: scope)
    @markers ?= []
    @markers.push(marker)

  destroy: ->
    @removeDecorations()
