Browse code
chore: whitespace
fiddlerwoaroof authored on 14/10/2022 03:43:01
Showing 2 changed files
Showing 2 changed files
... | ... |
@@ -6,7 +6,6 @@ |
6 | 6 |
(defparameter +dirname-format+ |
7 | 7 |
'((:year 4) #\- (:month 2) #\- (:day 2) #\/ (:hour 2) #\- (:min 2) #\/)) |
8 | 8 |
|
9 |
- |
|
10 | 9 |
(defmacro lambda* ((&rest args) &body body) |
11 | 10 |
(let ((rest-arg (gensym "REST"))) |
12 | 11 |
`(lambda (,@args &rest ,rest-arg) |
... | ... |
@@ -35,9 +34,9 @@ |
35 | 34 |
(lambda (entity) |
36 | 35 |
(typecase entity |
37 | 36 |
(alimenta:item |
38 |
- (let ((v (alimenta:content entity))) |
|
39 |
- (when v |
|
40 |
- (setf (alimenta:content entity) |
|
37 |
+ (let ((v (alimenta:content entity))) |
|
38 |
+ (when v |
|
39 |
+ (setf (alimenta:content entity) |
|
41 | 40 |
(html-sanitizer:sanitize v)))))))) |
42 | 41 |
(decf pop-times)))) |
43 | 42 |
|
... | ... |
@@ -102,14 +101,14 @@ |
102 | 101 |
(format *error-output* "~&SSL Error while pulling ~a~%" |
103 | 102 |
feed-url)))) |
104 | 103 |
(restart-case |
105 |
- (let* ((feed (with-retry ("Pull feed again.") |
|
106 |
- (normalize-feed feed-url (log-pull t))))) |
|
107 |
- (trivia:match (store feed stream-provider) |
|
108 |
- ((list title path) |
|
109 |
- (log-serialization t feed path) |
|
110 |
- (make-feed-reference (alimenta:feed-link feed) |
|
111 |
- :title title |
|
112 |
- :path (feed-relative-pathname |
|
104 |
+ (let* ((feed (with-retry ("Pull feed again.") |
|
105 |
+ (normalize-feed feed-url (log-pull t))))) |
|
106 |
+ (trivia:match (store feed stream-provider) |
|
107 |
+ ((list title path) |
|
108 |
+ (log-serialization t feed path) |
|
109 |
+ (make-feed-reference (alimenta:feed-link feed) |
|
110 |
+ :title title |
|
111 |
+ :path (feed-relative-pathname |
|
113 | 112 |
(stream-provider:absolute-path stream-provider path)))))) |
114 | 113 |
(skip-feed () |
115 | 114 |
:report (lambda (s) |
... | ... |
@@ -63,13 +63,13 @@ next time, it re-raises the exception." |
63 | 63 |
(with-gensyms (start restarted) |
64 | 64 |
`(let ((,restarted nil)) |
65 | 65 |
(tagbody ,start |
66 |
- (restart-case |
|
67 |
- (progn ,@body) |
|
68 |
- (,restart-name ,restart-args |
|
69 |
- ,@handler |
|
70 |
- (unless ,restarted |
|
71 |
- (setf ,restarted t) |
|
72 |
- (go ,start)))))))) |
|
66 |
+ (restart-case |
|
67 |
+ (progn ,@body) |
|
68 |
+ (,restart-name ,restart-args |
|
69 |
+ ,@handler |
|
70 |
+ (unless ,restarted |
|
71 |
+ (setf ,restarted t) |
|
72 |
+ (go ,start)))))))) |
|
73 | 73 |
|
74 | 74 |
|
75 | 75 |
(defun relative-uri-p (uri) |
... | ... |
@@ -97,7 +97,7 @@ next time, it re-raises the exception." |
97 | 97 |
|
98 | 98 |
(defmacro with-retry ((&optional (message "retry the operation")) &body body) |
99 | 99 |
`(loop |
100 |
- (restart-case (return (progn ,@body)) |
|
101 |
- (retry () |
|
102 |
- :report (lambda (s) |
|
103 |
- (format s "~@<~a~@:>" ,message)))))) |
|
100 |
+ (restart-case (return (progn ,@body)) |
|
101 |
+ (retry () |
|
102 |
+ :report (lambda (s) |
|
103 |
+ (format s "~@<~a~@:>" ,message)))))) |