mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-09 15:08:08 -05:00
2
Gemfile
2
Gemfile
@@ -24,7 +24,7 @@ group :test do
|
||||
gem "nokogiri", "~> 1.7"
|
||||
gem "rspec"
|
||||
gem "rspec-mocks"
|
||||
gem "rubocop", "~> 1.54.0"
|
||||
gem "rubocop", "~> 1.56.4"
|
||||
gem "rubocop-minitest"
|
||||
gem "rubocop-performance"
|
||||
gem "rubocop-rake"
|
||||
|
||||
@@ -280,7 +280,8 @@ module Jekyll
|
||||
return self[key] if key?(key)
|
||||
raise KeyError, %(key not found: "#{key}") if default.nil? && block.nil?
|
||||
return yield(key) unless block.nil?
|
||||
return default unless default.nil?
|
||||
|
||||
default unless default.nil?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user