Skip to content

Commit

Permalink
Use empty? instead of not seq
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Jun 10, 2012
1 parent 8e93bb5 commit b424da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/clojure/clojure/java/jdbc.clj
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ generated keys are returned (as a map)." }
"Given a collection of column names, rename duplicates so
that the result is a collection of unique column names."
[cols]
(if (or (not (seq cols)) (apply distinct? cols))
(if (or (empty? cols) (apply distinct? cols))
cols
(reduce (fn [unique-cols col-name] (conj unique-cols (make-name-unique unique-cols col-name 1))) [] cols)))

Expand Down

0 comments on commit b424da4

Please sign in to comment.