Skip to content

Commit

Permalink
Fix some more formatting with cljfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Oct 19, 2024
1 parent 15563cc commit eca2462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ring-core/src/ring/middleware/session/cookie.clj
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
[key ^String string options]
(let [[data mac] (.split string "--")]
(when-let [data (try (codec/base64-decode data)
(catch IllegalArgumentException _ nil))]
(catch IllegalArgumentException _ nil))]
(when (crypto/eq? mac (hmac key data))
(deserialize (decrypt key data) options)))))

Expand Down
2 changes: 1 addition & 1 deletion ring-core/src/ring/util/response.clj
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
(defn- safely-find-file [^String path opts]
(if-let [^String root (:root opts)]
(when (or (safe-path? root path)
(and (:allow-symlinks? opts) (not (directory-transversal? path))))
(and (:allow-symlinks? opts) (not (directory-transversal? path))))
(File. root path))
(File. path)))

Expand Down

0 comments on commit eca2462

Please sign in to comment.