Add (prog1 nil ...) form to avoid having the nil hanging at the end

master
Elis Axelsson 9 years ago
parent 4867c589f9
commit e04d885b0b
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
  1. 32
      webpaste.el

@ -92,22 +92,22 @@ Usage:
(lambda (text)
"Paste TEXT to provider"
;; Local variable post-data
(cl-pushnew (cons post-field text) post-data)
;; Do request
(request uri
:type type
:data post-data
:parser parser
:success success
:sync sync
:error
(cl-function (lambda (&key error-thrown &allow-other-keys)
(message "Got error: %S" error-thrown)
(unless no-failover
(webpaste-paste-text text)))))
nil))
(prog1 nil
;; Local variable post-data
(cl-pushnew (cons post-field text) post-data)
;; Do request
(request uri
:type type
:data post-data
:parser parser
:success success
:sync sync
:error
(cl-function (lambda (&key error-thrown &allow-other-keys)
(message "Got error: %S" error-thrown)
(unless no-failover
(webpaste-paste-text text))))))))

Loading…
Cancel
Save