Skip to content

Commit 26d14fb

Browse files
committed
don't load candidate rake tasks if the file isn't there
this prevents us from having to load submodules during the release process, just to pick up tasks that aren't needed.
1 parent 313a427 commit 26d14fb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
require 'bundler'
55
require 'rspec/core/rake_task'
66

7-
load 'spec/shared/lib/tasks/candidate.rake'
7+
if File.exist?('./spec/shared/lib/tasks/candidate.rake')
8+
load 'spec/shared/lib/tasks/candidate.rake'
9+
end
810

911
ROOT = File.expand_path(File.join(File.dirname(__FILE__)))
1012

0 commit comments

Comments
 (0)