Created
August 18, 2009 07:52
-
-
Save radhikalism/169596 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hiredman/sandbox.clj b/hiredman/sandbox.clj | |
index e5f3138..4b6b4d2 100644 | |
--- a/hiredman/sandbox.clj | |
+++ b/hiredman/sandbox.clj | |
@@ -91,13 +91,9 @@ | |
docstring# (:doc m#)] | |
(if m# | |
(.replaceAll (str al# "; " docstring# ) "\\s+" " ") | |
- (let [foo# (-> hiredman.clojurebot.code-lookup/contrib | |
- :vars | |
- ((partial filter (fn [a#] (= (:name a#) (.toString '~s))))) | |
- first)] | |
- (if foo# | |
- (.replaceAll (str (:namespace foo#) "/" (:name foo#) ";" (print-str (:arglists foo#)) "; " (:doc foo#)) "\\s+" " ") | |
- "not found"))))) | |
+ (-> hiredman.clojurebot.code-lookup/contrib | |
+ :vars ((partial filter (fn [a#] (= (:name a#) (.toString '~s))))) first | |
+ ((fn [foo#] (.replaceAll (str (:namespace foo#) "/" (:name foo#) ";" (print-str (:arglists foo#)) "; " (:doc foo#)) "\\s+" " "))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment