From 46c3e8cbeb05a2a6a46f7293fc839583d9a6def3 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Thu, 27 Dec 2018 12:44:58 -0800 Subject: [PATCH] And rubocop --- .../middleman-core/core_extensions/data/proxies/hash.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/middleman-core/lib/middleman-core/core_extensions/data/proxies/hash.rb b/middleman-core/lib/middleman-core/core_extensions/data/proxies/hash.rb index e2014b11..308af727 100644 --- a/middleman-core/lib/middleman-core/core_extensions/data/proxies/hash.rb +++ b/middleman-core/lib/middleman-core/core_extensions/data/proxies/hash.rb @@ -16,12 +16,8 @@ module Middleman end alias get [] - def method_missing(name, *args, &block) - if @data.key?(name) - self[name] - else - nil - end + def method_missing(name, *_args) + self[name] if @data.key?(name) end end end