Skip to content

Commit 2e93f1a

Browse files
committed
Add typehint and remove accidental whitespace
1 parent 826c177 commit 2e93f1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ring-core/src/ring/middleware/multipart_params.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@
144144
(respond (default-invalid-filename-handler request))))
145145

146146
(defn- add-invalid-filename-to-req
147-
[request invalid-filename-exception]
148-
(assoc request ::invalid-filename (.getName invalid-filename-exception) ))
147+
[request ^InvalidFileNameException invalid-filename-exception]
148+
(assoc request ::invalid-filename (.getName invalid-filename-exception)))
149149

150150
(defn wrap-multipart-params
151151
"Middleware to parse multipart parameters from a request. Adds the following

0 commit comments

Comments
 (0)