Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Cleanup code a tiny bit.

  • Loading branch information...
commit 8dfaa0d88fbcea957b174a30c314c805d0e14303 1 parent 03c35d2
Anthony Grimes authored October 17, 2011

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  src/cd_client/core.clj
12  src/cd_client/core.clj
@@ -51,10 +51,8 @@
51 51
 
52 52
 (defmacro handle-fns-etc
53 53
   [name fn]
54  
-  (cond
55  
-   (special-symbol? `~name)
56  
-   `(~fn "clojure.core" (str '~name))
57  
-   :else
  54
+  (if (special-symbol? `~name)
  55
+    `(~fn "clojure.core" (str '~name))
58 56
     (let [nspace (find-ns name)]
59 57
       (if nspace
60 58
         `(println "No usage examples for namespaces as a whole like" '~name
@@ -66,8 +64,10 @@
66 64
 (defn examples-core
67 65
   "Return examples from clojuredocs for a given namespace and name (as strings)"
68 66
   [ns name]
69  
-  (json/read-json (:body (http/get (str *examples-api* ns "/"
70  
-                                              (fixup-name-url name))))))
  67
+  (json/read-json
  68
+   (:body (http/get (str *examples-api* ns "/"
  69
+                         (fixup-name-url name))
  70
+                    {:accept-encoding ""}))))
71 71
 
72 72
 
73 73
 (defmacro examples

0 notes on commit 8dfaa0d

Please sign in to comment.
Something went wrong with that request. Please try again.