Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
Ignore nil values from kafka config
Browse files Browse the repository at this point in the history
  • Loading branch information
snichme committed Mar 20, 2019
1 parent c299fc6 commit 3d3b9c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cloudkarafka/kafkaadmin.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
(defn map->props
[m]
(let [props (java.util.Properties.)]
(doseq [[k v] m] (.put props (name k) v))
(doseq [[k v] m
:when (and k v)]
(.put props (name k) v))
props))

(defn member-list [group-name desc group-offset log-offset]
Expand Down

0 comments on commit 3d3b9c0

Please sign in to comment.