Skip to content

Commit

Permalink
Bump Rubocop to 1.56.4 (#9459)
Browse files Browse the repository at this point in the history
Merge pull request 9459
  • Loading branch information
JuanVqz committed Oct 22, 2023
1 parent 99f1a23 commit d9df973
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion lib/jekyll/drops/drop.rb
Expand Up @@ -280,7 +280,8 @@ def fetch(key, default = nil, &block)
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
Expand Down

0 comments on commit d9df973

Please sign in to comment.