         selectionEnd = range.end.add([0, -1])
 
       text = selection.getText()
-      selection.insertText(text.substring(1,text.length - 1))
+      selection.insertText(text.substring(1, text.length - 1))
       selection.setBufferRange([selectionStart, selectionEnd], options)
+      bracketsRemoved = true
+    bracketsRemoved
 
   wrapSelectionInBrackets: (editor, bracket) ->
-
     pair = @pairedCharacters[bracket]
     selectionWrapped = false
     editor.mutateSelectedText (selection) ->

  isClosingBracket: (string) ->
    @getInvertedPairedCharacters().hasOwnProperty(string)

  isCloseCharacter: (string) ->
    @closeCharacter == string

  selectionIsWrappedByMatchingBrackets: (selection) ->
    return false if selection.isEmpty()
    selectedText = selection.getText()

          editor.delete()
        false

  removeBrackets: ->
    editor = atom.workspace.getActiveEditor()
    bracketsRemoved = false
    editor.mutateSelectedText (selection) =>

      if selection.isEmpty() || !@selectionIsWrappedByMatchingBrackets(selection)
        return

      range = selection.getBufferRange()
