Fix gnus-cloud-download-all-data return value

* lisp/gnus/gnus-cloud.el (gnus-cloud-download-data): Return the
result of calling `gnus-cloud-update-all' when UPDATE is t, as per the
documented behaviour. (Bug#40280)
This commit is contained in:
David Edmondson 2020-06-23 12:52:34 +01:00 committed by Ted Zlatanov
parent 30ff2433b1
commit 7fd3f0b381
No known key found for this signature in database
GPG key ID: 11F23D0A4E4B9DEE

View file

@ -478,8 +478,8 @@ Otherwise, returns the Gnus Cloud data chunks."
(push (gnus-cloud-parse-chunk) chunks)
(forward-line 1))))
(if update
(progn
(mapc #'gnus-cloud-update-all chunks)
(prog1
(mapcar #'gnus-cloud-update-all chunks)
(setq gnus-cloud-sequence highest-sequence-seen))
chunks)))