Skip to content

Commit

Permalink
Make int-to-bool pass through non-integer values. Failed when using m…
Browse files Browse the repository at this point in the history
…ulti/exec/discard otherwise.

Bump version to 1.2.4
  • Loading branch information
ragnard committed Oct 1, 2010
1 parent 5f3ac42 commit 0c2661e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project.clj
@@ -1,4 +1,4 @@
(defproject redis-clojure "1.2.3"
(defproject redis-clojure "1.2.4"
:description "A client library for Redis"
:url "http://github.com/ragnard/redis-clojure"
:dependencies [[org.clojure/clojure "1.2.0"]
Expand Down
2 changes: 1 addition & 1 deletion src/redis/commands.clj
Expand Up @@ -6,7 +6,7 @@
;;; Command definitions

;; Utility conversion functions
(defn- int-to-bool [n] (< 0 n))
(defn- int-to-bool [n] (if (integer? n) (< 0 n) n))
(defn- string-to-keyword [s] (keyword s))
(defn- string-to-double [s] (when s (Double/parseDouble s)))
(defn- seq-to-set [seq] (when seq (clojure.core/set seq)))
Expand Down

0 comments on commit 0c2661e

Please sign in to comment.