fix: LocalJump error: unexpected return

➜ rake site:latest_version
rake aborted!
LocalJumpError: unexpected return
/jekyll/rake/site.rake:89:in `block (2 levels) in <top (required)>'
Tasks: TOP => site:latest_version
(See full trace by running task with --trace)
This commit is contained in:
Frank Taillandier 2019-06-13 11:52:29 +02:00 committed by GitHub
parent 2df56abf85
commit 1480c41213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ namespace :site do
desc "Write the latest Jekyll version" desc "Write the latest Jekyll version"
task :latest_version do task :latest_version do
return if version =~ %r!(beta|rc|alpha)!i next if version =~ %r!(beta|rc|alpha)!i
require "safe_yaml/load" require "safe_yaml/load"
config_file = File.join(docs_folder, "_config.yml") config_file = File.join(docs_folder, "_config.yml")
config = SafeYAML.load_file(config_file) config = SafeYAML.load_file(config_file)