Skip to content

Commit

Permalink
fix export for the case of empty keys
Browse files Browse the repository at this point in the history
  • Loading branch information
maiha committed Jun 12, 2016
1 parent 6bfc0c9 commit 7d0498e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/redis-tsv/bulk.cr
Expand Up @@ -26,6 +26,7 @@ class RedisTsv

cnt = 0
raw.each_keys(count: count) do |keys|
next if keys.size == 0
vals = raw.mget(keys)
buf = String.build {|b|
keys.zip(vals){ |k,v| b << "#{k}#{delimiter}#{v}\n" }
Expand Down

0 comments on commit 7d0498e

Please sign in to comment.