From faed9c4143215ed57c086cc6d18257efda8f793d Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Mon, 1 Oct 2018 18:19:31 +0530 Subject: [PATCH] Drop support for `jekyll-watch-1.4.0` and older (#7287) Merge pull request 7287 --- lib/jekyll/commands/build.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/jekyll/commands/build.rb b/lib/jekyll/commands/build.rb index 3e0b715e..64ae6e05 100644 --- a/lib/jekyll/commands/build.rb +++ b/lib/jekyll/commands/build.rb @@ -85,16 +85,7 @@ module Jekyll end External.require_with_graceful_fail "jekyll-watch" - watch_method = Jekyll::Watcher.method(:watch) - if watch_method.parameters.size == 1 - watch_method.call( - options - ) - else - watch_method.call( - options, site - ) - end + Jekyll::Watcher.watch(options, site) end end end