     (message! "Looking for orphaned packages...")
     (let ((packages (doom-get-orphaned-packages)))
       (cond ((not packages)
-             (message! (green "No unused packages to remove")))
+             (message! (green "No unused packages to remove"))
+             nil)
 
             ((not
               (or (getenv "YES")

                          (if result "✓ DONE" "✕ FAILED"))))))

             (message! (bold (green "Finished!")))
             (doom//reload-load-path))))))

;;;###autoload
(defun doom//packages-autoremove ()

               (message! "Installing %s" (car pkg))
               (doom--condition-case!
                (message! "%s%s"
                          (if (and (package-installed-p (car pkg))
                                   (not (doom-package-different-backend-p (car pkg)))
                                   (not (doom-package-different-recipe-p (car pkg))))
                              (dark (white "⚠ ALREADY INSTALLED"))
                            (condition-case e
                                (if (doom-install-package (car pkg) (cdr pkg))
                                    (green "✓ DONE")
                                  (red "✕ FAILED"))
                              (error
                               (red "✕ ERROR (%s)" e))))
                          (if (plist-member (cdr pkg) :pin)
                              (format " [pinned: %s]" (plist-get (cdr pkg) :pin))
                            ""))))

             (message! (bold (green "Finished!")))
             (doom//reload-load-path)
             t)))))

;;;###autoload
(defun doom//packages-update ()
