Skip to content

Commit

Permalink
prefer quot over unchecked-divide
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Jun 16, 2010
1 parent 1068a80 commit 9f9b78a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/clojure/clojure/contrib/http/agent.clj
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
(defn- connection-success? [#^HttpURLConnection conn]
"Returns true if the HttpURLConnection response code is in the 2xx
range."
(= 2 (unchecked-divide (.getResponseCode conn) 100)))
(= 2 (quot (.getResponseCode conn) 100)))

(defn- open-response
"Agent action that opens the response body stream on the HTTP
Expand Down Expand Up @@ -137,7 +137,7 @@
"Returns true if the response status of the HTTP agent begins with
digit, an Integer."
[digit http-agnt]
(= digit (unchecked-divide (.getResponseCode
(= digit (quot (.getResponseCode
#^HttpURLConnection (::connection @http-agnt))
100)))

Expand Down

0 comments on commit 9f9b78a

Please sign in to comment.