Browse Source

org.el (org-refile-check-position): Remove unused user error

* org.el (org-refile-check-position): Remove unused user error.
Bastien Guerry 10 years ago
parent
commit
2c33442ae2
1 changed files with 1 additions and 3 deletions
  1. 1 3
      lisp/org.el

+ 1 - 3
lisp/org.el

@@ -11936,9 +11936,7 @@ this is used for the GOTO interface."
 	 (pos (nth 3 refile-pointer))
 	 buffer)
     (if (and (not (markerp pos)) (not file))
-	(if file
-	    (user-error "Please save the buffer to a file before refiling")
-	  (user-error "Please indicate a target file in the refile path"))
+	(user-error "Please indicate a target file in the refile path")
       (when (org-string-nw-p re)
 	(setq buffer (if (markerp pos)
 			 (marker-buffer pos)