Skip to content

Commit 873f537

Browse files
ashmarolijekyllbot
authored andcommitted
Use Hash#key? instead of Hash#keys.any? (#201)
Merge pull request 201
1 parent d360b87 commit 873f537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jekyll-redirect-from/generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def generate(site)
1010
@redirects = {}
1111

1212
# Inject our layout, unless the user has already specified a redirect layout'
13-
unless site.layouts.keys.any? { |name| name == "redirect" }
13+
unless site.layouts.key?("redirect")
1414
site.layouts["redirect"] = JekyllRedirectFrom::Layout.new(site)
1515
end
1616

0 commit comments

Comments
 (0)