From 7690fcb02b425c8875995fd54652c13c598c7650 Mon Sep 17 00:00:00 2001 From: ashmaroli Date: Mon, 6 Nov 2017 20:06:19 +0530 Subject: [PATCH] use Kernel#Array instead of explicit Array check (#6525) Merge pull request 6525 --- lib/jekyll/configuration.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/jekyll/configuration.rb b/lib/jekyll/configuration.rb index 575dca65..087fdf78 100644 --- a/lib/jekyll/configuration.rb +++ b/lib/jekyll/configuration.rb @@ -164,8 +164,7 @@ module Jekyll config_files = Jekyll.sanitized_path(source(override), "_config.#{default}") @default_config_file = true end - config_files = [config_files] unless config_files.is_a? Array - config_files + Array(config_files) end # Public: Read configuration and return merged Hash