Permalink
Browse files

Map already returns a lazy seq, remove redundancy

  • Loading branch information...
1 parent 4ee4932 commit 40f72b2d1ce9c0d0739f049f7c7a27cf24498ef4 @semperos committed Feb 10, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/clj_webdriver/core_element.clj
@@ -243,15 +243,15 @@
(by-query (build-query by :local))
by)]
(init-element (.findElement (:webelement element) by))))
-
+
(find-elements-by [element by]
(let [by (if (map? by)
(by-query (build-query by :local))
by)
els (.findElements (:webelement element) by)]
(if (seq els)
- (lazy-seq (map init-element els))
- (lazy-seq (map init-element [nil])))))
+ (map init-element els)
+ (map init-element [nil]))))
(find-element [element by]
(find-element-by element by))

0 comments on commit 40f72b2

Please sign in to comment.