Skip to content

Commit

Permalink
RPC properly encodes () as NIL not (NIL)
Browse files Browse the repository at this point in the history
  • Loading branch information
njordhov committed Apr 22, 2011
1 parent 6fe9247 commit 9f6f4de
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/swank/rpc.clj
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,12 @@
nil))

(defmethod print-object clojure.lang.ISeq [o, #^Writer w]
(.write w "(")
(print-object (first o) w)
(doseq [item (rest o)]
(.write w " ")
(print-object item w))
(.write w ")"))

(if (empty? o) (.write w "NIL") (do (.write w "(")
(print-object (first o) w)
(doseq [item (rest o)]
(.write w " ")
(print-object item w))
(.write w ")"))))
(defn- write-form
([#^Writer writer message]
(print-object message writer)))
Expand Down

0 comments on commit 9f6f4de

Please sign in to comment.