From de39107c76f6b769ce81203c71c6931eb904176c Mon Sep 17 00:00:00 2001 From: Brint O'Hearn Date: Mon, 23 May 2016 21:12:31 -0500 Subject: [PATCH] Rubocop cleanup for lib/jekyll/layout.rb --- .rubocop.yml | 1 - lib/jekyll/layout.rb | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 51f96642..b7dd2530 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -18,7 +18,6 @@ AllCops: - lib/jekyll/entry_filter.rb - lib/jekyll/filters.rb - lib/jekyll/frontmatter_defaults.rb - - lib/jekyll/layout.rb - lib/jekyll/liquid_renderer/table.rb - lib/jekyll/liquid_renderer.rb - lib/jekyll/reader.rb diff --git a/lib/jekyll/layout.rb b/lib/jekyll/layout.rb index 72005277..690d86fb 100644 --- a/lib/jekyll/layout.rb +++ b/lib/jekyll/layout.rb @@ -58,7 +58,9 @@ module Jekyll # Returns a String path which represents the relative path # from the site source to this layout def relative_path - @relative_path ||= Pathname.new(path).relative_path_from(Pathname.new(@base_dir)).to_s + @relative_path ||= Pathname.new(path).relative_path_from( + Pathname.new(@base_dir) + ).to_s end end end