From fee6a8b6178f2e4ca54e6dce343b66733b30b0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20G=C3=BCnnewig?= Date: Thu, 31 Jul 2014 13:13:07 +0200 Subject: [PATCH] Make rubocop happy --- .../lib/middleman-core/core_extensions/rendering.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/middleman-core/lib/middleman-core/core_extensions/rendering.rb b/middleman-core/lib/middleman-core/core_extensions/rendering.rb index 02f98eab..d2c7d1fd 100644 --- a/middleman-core/lib/middleman-core/core_extensions/rendering.rb +++ b/middleman-core/lib/middleman-core/core_extensions/rendering.rb @@ -176,10 +176,10 @@ module Middleman opts[:template_body] = content if content content = if block_given? - render_individual_file(path, locs, opts, context, &block) - else - render_individual_file(path, locs, opts, context) - end + render_individual_file(path, locs, opts, context, &block) + else + render_individual_file(path, locs, opts, context) + end path = File.basename(path, File.extname(path)) rescue LocalJumpError