Permalink
Browse files

Found commented out parens

  • Loading branch information...
1 parent 1321c7b commit 8dc87a31878fc9410e616ee7642984976645a122 @zolrath committed Sep 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/andrew_site/models/db.clj
@@ -9,7 +9,7 @@
"Parses mongodb url from heroku, eg. mongodb://user:pass@localhost:1234/db"
(let [matcher (re-matcher #"^.*://(.*?):(.*?)@(.*?):(\d+)/(.*)$" url)] ;; Setup the regex.
(when (.find matcher) ;; Check if it matches.
- (zipmap [:match :user :pass :host :port :db] (re-groups matcher))))) ;; Construct an options map.
+ (zipmap [:match :user :pass :hOst :port :db] (re-groups matcher))))) ;; Construct an options map.
(defn maybe-init []
"Checks if connection and collection exist, otherwise initialize."
@@ -18,7 +18,7 @@
config (split-mongo-url mongo-url)] ;; Extract options.
(println "Initializing mongo @ " mongo-url)
(mongo! :db (:db config) :host (:host config) :port (Integer. (:port config))) ;; Setup global mongo.
- (authenticate (:user config) (:pass config)) ;; Setup u/p.)))
+ (authenticate (:user config) (:pass config)))))
(def major-skills
(map #(:skill %) (fetch :skills :where {:level "major"})))

0 comments on commit 8dc87a3

Please sign in to comment.