technomancy / swank-clojure

Swank/slime support for clojure
Eclipse Public License 1.0
412 stars 83 forks source link

suspicious looking line in server.clj #76

Closed codermattie closed 12 years ago

codermattie commented 12 years ago

line 52 - 55 looks wrong:

 (returning [conn (make-connection socket (or (:encoding opts)
                                              (System/getProperty
                                               "swank.encoding"
                                               "utf-8-unix")))]

note that there is no closing parentheses after "swank.encoding" it should be ?

 (returning [conn (make-connection socket (or (:encoding opts)
                                              (System/getProperty
                                               "swank.encoding")  <------
                                               "utf-8-unix"))]
purcell commented 12 years ago

Nope, it's fine -- see the docs for the two-argument form of System.getProperty