Skip to content

Commit

Permalink
Methods rename
Browse files Browse the repository at this point in the history
  • Loading branch information
eprunier committed May 10, 2013
1 parent 13c58d8 commit aa076ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ariane/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
[ariane.rss :as rss]
[ariane.atom :as atom]))

(defn- rss?
(defn- rss-feed?
[feed]
(-> feed :tag (= :rss)))

(defn- atom?
(defn- atom-feed?
[feed]
(-> feed :tag (= :feed)))

Expand All @@ -17,8 +17,8 @@
[source]
(let [feed (xml/parse source)]
(cond
(rss? feed) (rss/parse-rss (:content feed))
(atom? feed) (atom/parse-atom (:content feed))
(rss-feed? feed) (rss/parse-rss (:content feed))
(atom-feed? feed) (atom/parse-atom (:content feed))
:else (println "Unkown format"))))

(defn infos
Expand Down

0 comments on commit aa076ed

Please sign in to comment.