Permalink
Browse files

Cleanup code a tiny bit.

  • Loading branch information...
1 parent 03c35d2 commit 8dfaa0d88fbcea957b174a30c314c805d0e14303 @Raynes committed Oct 17, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/cd_client/core.clj
View
12 src/cd_client/core.clj
@@ -51,10 +51,8 @@
(defmacro handle-fns-etc
[name fn]
- (cond
- (special-symbol? `~name)
- `(~fn "clojure.core" (str '~name))
- :else
+ (if (special-symbol? `~name)
+ `(~fn "clojure.core" (str '~name))
(let [nspace (find-ns name)]
(if nspace
`(println "No usage examples for namespaces as a whole like" '~name
@@ -66,8 +64,10 @@
(defn examples-core
"Return examples from clojuredocs for a given namespace and name (as strings)"
[ns name]
- (json/read-json (:body (http/get (str *examples-api* ns "/"
- (fixup-name-url name))))))
+ (json/read-json
+ (:body (http/get (str *examples-api* ns "/"
+ (fixup-name-url name))
+ {:accept-encoding ""}))))
(defmacro examples

0 comments on commit 8dfaa0d

Please sign in to comment.