From 4b7b9d8ad628182a5ed994ae23485d1d1255f391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=BCller?= Date: Tue, 7 Oct 2014 20:57:44 +0200 Subject: [PATCH] minor refactoring --- src/notehub/storage.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notehub/storage.clj b/src/notehub/storage.clj index 9de94b0..450784a 100644 --- a/src/notehub/storage.clj +++ b/src/notehub/storage.clj @@ -61,7 +61,7 @@ (defn valid-password? [noteID passwd] (let [stored (redis :hget :password noteID)] - (and (not (= 0 stored)) (= stored passwd)))) + (and (not= 0 stored) (= stored passwd)))) (defn get-note-views [noteID] (redis :hget :views noteID))