       return
 
     getSelection = ->
-      if ruler.selection.empty then new Segment(ruler.position) else ruler.selection
+      if ruler.selection.empty
+        new Segment(ruler.position)
+      else
+        ruler.selection
 
     $scope.addBlank = () ->
       unless blank

            updateRange()
            sortTracks()
            @finishPosition()
          , (res) =>
            @finishPosition()
            messages.addError


      updateExcerpt: () ->
        @excerpt = undefined
        seg = if @segment.full then @segment else getSelection()
        return if !@asset || !seg || !@segment.overlaps(seg)
        excerpt = @excerpts.find((e) -> seg.overlaps(e.segment))
        @excerpt =
          if !excerpt
