Bump Rubocop to 1.56.4 (#9459)

Merge pull request 9459
This commit is contained in:
Juan Vásquez 2023-10-22 10:49:12 -06:00 committed by GitHub
parent 99f1a235ea
commit d9df973d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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"

View File

@ -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