parent
99f1a235ea
commit
d9df973d2c
2
Gemfile
2
Gemfile
|
@ -24,7 +24,7 @@ group :test do
|
||||||
gem "nokogiri", "~> 1.7"
|
gem "nokogiri", "~> 1.7"
|
||||||
gem "rspec"
|
gem "rspec"
|
||||||
gem "rspec-mocks"
|
gem "rspec-mocks"
|
||||||
gem "rubocop", "~> 1.54.0"
|
gem "rubocop", "~> 1.56.4"
|
||||||
gem "rubocop-minitest"
|
gem "rubocop-minitest"
|
||||||
gem "rubocop-performance"
|
gem "rubocop-performance"
|
||||||
gem "rubocop-rake"
|
gem "rubocop-rake"
|
||||||
|
|
|
@ -280,7 +280,8 @@ module Jekyll
|
||||||
return self[key] if key?(key)
|
return self[key] if key?(key)
|
||||||
raise KeyError, %(key not found: "#{key}") if default.nil? && block.nil?
|
raise KeyError, %(key not found: "#{key}") if default.nil? && block.nil?
|
||||||
return yield(key) unless block.nil?
|
return yield(key) unless block.nil?
|
||||||
return default unless default.nil?
|
|
||||||
|
default unless default.nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue