 
 If INLINE is nil, returns t if the opening and closing braces are on adjacent
 lines, above and below, with only whitespace in between."
-  (when-let* ((pair (or pair (sp-get-thing))))
+  (when pair
     (let ((beg (plist-get pair :beg))
           (end (plist-get pair :end))
           (pt (point)))

;;; core/autoload/editor.el -*- lexical-binding: t; -*-

;;;###autoload
(defun doom-surrounded-p (&optional pair inline balanced)
  "Returns t if point is surrounded by a brace delimiter: {[(

If INLINE is non-nil, only returns t if braces are on the same line, and

                       (and (> (- (skip-chars-backward " \t" (line-beginning-position))) 0)
                            (bolp))))
                (doom/backward-delete-whitespace-to-column))
               ((let* ((pair (ignore-errors (sp-get-thing)))
                       (op   (plist-get pair :op))
                       (cl   (plist-get pair :cl))
                       (beg  (plist-get pair :beg))
