From b4472e71674799c5abb0c143aaaf94f5d5a3b064 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Sun, 2 Mar 2014 14:35:43 +0400 Subject: [PATCH] Cosmetics --- src/clojure/monger/cursor.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/clojure/monger/cursor.clj b/src/clojure/monger/cursor.clj index ed65233..e5d9c31 100644 --- a/src/clojure/monger/cursor.clj +++ b/src/clojure/monger/cursor.clj @@ -45,10 +45,12 @@ (for [[opt option-mask] cursor-options] [opt (< 0 (bit-and (.getOptions db-cur) option-mask))]))) -(defn add-option! [^DBCursor db-cur, ^String opt] +(defn add-option! + [^DBCursor db-cur ^String opt] (.addOption db-cur (get cursor-options (keyword opt) 0))) -(defn remove-option! [^DBCursor db-cur, ^String opt] +(defn remove-option! + [^DBCursor db-cur ^String opt] (.setOptions db-cur (bit-and-not (.getOptions db-cur) (get cursor-options (keyword opt) 0))))