Skip to content

Commit 465a556

Browse files
author
Daniel Mikusa
authored
Fixes package bug introduced in refactoring (#944)
PR #941 introduced a bug in packaging that wasn't caught by unit tests. The removal of this empty block generated a LocalJumpError. This PR adds it back and tells rubocop to ignore the empty block. Signed-off-by: Daniel Mikusa <[email protected]>
1 parent 0487a68 commit 465a556

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rakelib/dependency_cache_task.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ def cache
102102
def cache_task(uri)
103103
task uri do |t|
104104
@monitor.synchronize { rake_output_message "Caching #{t.name}" }
105-
cache.get(t.name)
105+
# rubocop:disable Lint/EmptyBlock
106+
cache.get(t.name) {}
107+
# rubocop:enable Lint/EmptyBlock
106108
end
107109

108110
uri

0 commit comments

Comments
 (0)