Permalink
Browse files

Fix linting errors.

  • Loading branch information...
envygeeks committed Feb 20, 2018
1 parent 5f11816 commit be236f4e93cad86b9668d56557eb20a8e1dbfa2e
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/jekyll/assets/plugins/searcher.rb
  2. +1 −1 spec/fixture/_plugins/hook.rb
@@ -78,7 +78,7 @@ def html
end
# --
-Jekyll::Hooks.register [:pages, :documents, :posts], :post_render do |d|
+Jekyll::Hooks.register %i(pages documents posts), :post_render do |d|
if d.site.sprockets.asset_config["plugins"]["img"]["searcher"]
if d.output_ext == ".html"
Jekyll::Assets::Plugins::Searcher.new(d).run
@@ -2,7 +2,7 @@
# Copyright: 2012 - 2018 - MIT License
# Encoding: utf-8
-Jekyll::Hooks.register [:pages, :documents, :posts], :pre_render do |_, p|
+Jekyll::Hooks.register %i(pages documents posts), :pre_render do |_, p|
p["hello"] = {
"world" => "img.png",
}

0 comments on commit be236f4

Please sign in to comment.