Skip to content

Commit 951cdbb

Browse files
committed
Check if block is given
1 parent 86a5d7b commit 951cdbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cldr/download.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def download(source = DEFAULT_SOURCE, target = DEFAULT_TARGET, version = DEFAULT
2323
path = File.join(target, entry.name)
2424
FileUtils.mkdir_p(File.dirname(path))
2525
file.extract(entry, path)
26-
yield path
26+
yield path if block_given?
2727
end
2828
end
2929
end

0 commit comments

Comments
 (0)